How to disable the “Your site has updated to WordPress x.y.z” admin email?
In your functions.php add: add_filter( ‘auto_core_update_send_email’, ‘__return_false’ );
In your functions.php add: add_filter( ‘auto_core_update_send_email’, ‘__return_false’ );
Here’s an idea: use the save_post hook to set a session containing the message you want to show the user and then redirect to the home page. In the home page template, check for the presence of that session and show the message to the user. Something like this: functions.php: add_action( ‘save_post’, ‘wpse60249_save_post’ ); function … Read more
I would do this when you call add_options_page(), not later. It’s always better to do this with the supported API instead of playing with the internal structures. The plugin updater periodically checks the plugin status and then saves the result in a transient. This means that it only reads this cached status when the menu … Read more
Add the following code in your child theme’s functions.php or package it as a custom plugin to easily enable/disable: add_action( ‘wp_before_admin_bar_render’, ‘wpse161696_toolbar_menu’ ); add_action( ‘admin_menu’, ‘wpse161696_updates’ ); function wpse161696_toolbar_menu() { // Remove update menu item from the toolbar global $wp_admin_bar; $wp_admin_bar -> remove_menu( ‘updates’ ); } function wpse161696_updates() { // Remove all updating related functions … Read more
There’s a few plugins that handle email notifications, but they all seem to act like a subscription service for (all) WordPress users. To notify just you when a post or page is published: /** * Send an email notification to the administrator when a post is published. * * @param string $new_status * @param string … Read more
To disable user email notification, add this in a plugin or theme: add_filter( ‘send_password_change_email’, ‘__return_false’ ); FYI wp_password_change_notification() controls admin email notification when a user changes their password
For example if you don’t want WordPress to show update notifications for akismet, you will do it like: function filter_plugin_updates( $value ) { unset( $value->response[‘akismet/akismet.php’] ); return $value; } add_filter( ‘site_transient_update_plugins’, ‘filter_plugin_updates’ );
I have fully implemented some Achievements for my new Android App that uses the Google Play Service. But I am wondering how or whether I can disable/hide the notification that pops up when you have unlocked an Achievement programatically? (Google search couldn’t answer my question so far)