开发者 | LukasNeptun |
---|---|
更新时间 | 2021年7月16日 04:47 |
捐献地址: | 去捐款 |
PHP版本: | 3.5 及以上 |
WordPress版本: | 5.8 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
Important! Users that are using Cache plugins, please read below: When enabling or disabling Maintenance Mode, don't forget to flush your cache!Filters
ljmm_site_title
- Filter page title while in maintenance mode
ljmm_admin_bar_indicator_enabled
- Control visibility of admin bar indicator
limm_css_filename
- The filename of the CSS style sheet (as found in the theme's stylesheet directory) - just the filename, for example: maintenance.min.css
. (Note: you do not need to use this filter for a stylesheet; see FAQs below.)
ljmm_css_url
- The url of the css file.
Actions
ljmm_before_mm
- Runs at the beginning of core maintenance method
Having trouble? Please read FAQ first, if you need any assistance, you can use support button on the settings page of the Maintenance Mode.
Development on GitHub The development of Maintenance Mode takes place on GitHub. Bugs and pull requests are welcomed there.
lj-maintenance-mode
to the /wp-content/plugins/
directoryFirst, if you are using Cache plugin such as WP Super Cache or W3 Total Cache, flush all your cache. Secondly, disable all other plugins and try enabling just Maintenance Mode and see if problem persist. This should solve most common problems. If not, don't hesitate to contact me via Support button from Settings page
Not through the admin interface. You can use a custom stylesheet (see next FAQ) to do this, however.
By default, the plugin will use a stylesheet named maintenance.min.css
in the theme's stylesheet folder. You can specify a different filename by using a Filter (above).
Click "Advanced Settings" and mark the checkbox to add widget areas. Then you will find two new widget areas in WordPress's Widgets page, for above and below the content.
delete_plugins
capability for super admins and ljmm_control
for rest of the usersinit
hook instead of get_header
is used for maintenance mode