Skip to content

Instantly share code, notes, and snippets.

@benytocarlo
Created June 12, 2014 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benytocarlo/fa593eb25e1e8bfc219e to your computer and use it in GitHub Desktop.
Save benytocarlo/fa593eb25e1e8bfc219e to your computer and use it in GitHub Desktop.
ocultar actualizaciones de Wordpress (Core/Plugins)
<?php
#esto se debe agregar al functions.php del theme
define( 'WP_AUTO_UPDATE_CORE', false );
remove_action( 'load-update-core.php', 'wp_update_plugins' );
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment