Skip to content

Instantly share code, notes, and snippets.

@ridinghoodmedia
Last active February 3, 2018 02:33
Show Gist options
  • Save ridinghoodmedia/5f7dcec4f0e05bd9821455536995dab1 to your computer and use it in GitHub Desktop.
Save ridinghoodmedia/5f7dcec4f0e05bd9821455536995dab1 to your computer and use it in GitHub Desktop.
Wordpress snippets
// 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