Skip to content

Instantly share code, notes, and snippets.

@manhleo93
Last active January 15, 2018 09:05
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 manhleo93/f9ca65497bfab1eb8b3d44b89b998e17 to your computer and use it in GitHub Desktop.
Save manhleo93/f9ca65497bfab1eb8b3d44b89b998e17 to your computer and use it in GitHub Desktop.
Tắt thông báo cập nhật wordpress
# Tắt thông báo cập nhật Plugin Wordpress
function disable_plugin_updates( $value ) {
unset( $value->response['akismet/akismet.php'] );
unset( $value->response['thrive-comments/thrive-comments.php'] );
unset( $value->response['monarch/monarch.php'] );
return $value;
}
add_filter( 'site_transient_update_plugins', 'disable_plugin_updates' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment