WordPress website keeps loading the maintenance page
I was able to fix it finally! .. All i did is deactivating all WordPress plugins then reactivating them again, and all worked fine .. Just that!!!
I was able to fix it finally! .. All i did is deactivating all WordPress plugins then reactivating them again, and all worked fine .. Just that!!!
You can pass a title to the wp_die() function or even any other HTML content like heading tags: https://codex.wordpress.org/Function_Reference/wp_die But if you are trying to have more control over what’s being outputted, you should use the template_include filter and use your custom template: https://codex.wordpress.org/Plugin_API/Filter_Reference/template_include EXAMPLE: add_filter( ‘template_include’, ‘show_maintenance_page’, 99 ); function show_maintenance_page( $template ) { … Read more
I would advise againt using anonymous functions for callback (when ever you can) as you can’t use a targeted remove_action on it. What Maythan8 answered will work but it can be done with fewer functions. add_action(‘template_redirect’, ‘bt_maintenance_redirect’); function bt_maintenance_redirect () { if (is_page(4848) || current_user_can(‘administrator’)) return; if (wp_safe_redirect(esc_url(home_url(‘maintenance/’)))) exit; } You used esc_url_raw but this … Read more
You can list the sites a plugin has been activated on in the shell using WP CLI: sites=$(wp site list –field=url) for url in $sites; do if wp plugin is-active “YOURPLUGINNAME” –url=”${url}” –network; then echo “${url}” fi done It will print out the URL of each site on its own line that has that plugin … Read more
A good solution to your problem would be to use a maintenance mode plugin. These plugins will show a splash page to your visitors, but allow administrators full access to the site. You can find these plugins in the Plugin Repository, for example: http://wordpress.org/extend/plugins/maintenance-mode/
While I agree with Justin Tadlock on a lot of things, I strongly disagree with him on this. The reason parent/child themes exist is that there’s a lot of common functionality used across websites. Instead of re-inventing the wheel every time, it’s better to build from a solid base that has been tested by hundreds … Read more
I STRONGLY suggest you take your time and set up a development server with versioning like GIT. It is awesome. But since i am in exactly the same position as you and have not yet done it myself, I will share how I do things. If I have changes to implement that will possibly bring … Read more
I think HTML mirror is the way to go here. There is no point keeping dynamic site that doesn’t need to be. And leaving it unmaintained is not really possible on auto-pilot – even if updates are automatic there is no guarantee some plugin won’t get just dropped by developer. Alternatively you can build multi-design … Read more
As you have already pointed out there is no right answer to this but here is how I deal with WP sites after they are done. When building a WP site for a client, through the whole process we make them aware of our aftersales support. Our support has different levels with the levels giving … Read more
How much work is required to maintain WordPress? If you are not maintaining the server itself, very little. Even actual server maintenance doesn’t usually take that much time though. That is, how often are there security updates and new versions that you will probably want? Basically, you want every release. I would not advise skipping … Read more