Last active
February 3, 2018 02:33
-
-
Save ridinghoodmedia/5f7dcec4f0e05bd9821455536995dab1 to your computer and use it in GitHub Desktop.
Wordpress snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hide error display | |
ini_set('display_errors','Off'); | |
ini_set('error_reporting', E_ALL ); | |
define('WP_DEBUG', false); | |
define('WP_DEBUG_DISPLAY', false); | |
add_filter( 'auto_update_plugin', '__return_true' ); | |
This filter tells WordPress automatic updater to automatically install plugin updates when they’re available. | |
If you also want to automatically update your themes, then you can add another code like this: | |
1 add_filter( 'auto_update_theme', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment