Skip to main content
Share Your Experience: Take the 2024 Developer Survey
33 votes

Disable email notification after change of password

To disable Admin email notification when a user resets their own password, create a Plugin (or Must Use Plugin) using the following code snippet: /** * Disable Admin Notification of User Password ...
rjb's user avatar
  • 1,387
11 votes

How to change the email notification recipient (user) for new comments?

There's a great article explaining how to hook into 2 filters for this at https://web.archive.org/web/20200216075253/http://www.sourcexpress.com/customize-wordpress-comment-notification-emails/ To ...
Andy Macaulay-Brook's user avatar
8 votes
Accepted

How to add notification bubble for my custom admin menu page

OK, so it has nothing to do with WP_List_Table, to be precise. All you need to do is to add some additional info during registration of your custom admin page. There are two classes used by WordPress ...
Krzysiek Dróżdż's user avatar
7 votes
Accepted

Hook/notify when any option or setting is added or updated

Looking at the sources (core files, wp-includes/option.php) you can always find your target hook tags: add_action('added_option', 'wpse230212_callback_add', 10, 2); add_action('updated_option', '...
Ismail's user avatar
  • 1,936
5 votes

Disable update notification for individual plugins

Disable All Update Notifications with Code function remove_core_updates(){ global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,); } ...
Muhammad Bilal's user avatar
3 votes
Accepted

comment_notification_text filter for custom post type

Using comment_notification_text you will get comment notification text and comment ID. To check the post type you need to get the post associated with comment and then you can check for post type ...
Sumit's user avatar
  • 4,804
3 votes

admin_notices not displaying in plugin

When using Multi-Site, you should do both: add_action('admin_notices', 'your_function'); add_action('network_admin_notices', 'your_function'); btw, $plugin_update variable u used inside ...
T.Todua's user avatar
  • 5,810
3 votes

Disable email notification after change of password

This works for me, just clear the email address. // Disable password change notification email. add_filter('wp_password_change_notification_email', function ($wp_password_change_notification_email) { ...
Mike van den Hoek's user avatar
3 votes

Disable email notification after change of password

If you're using Woocommerce: Since WC 3.8.0 (November 2019), there is now a dedicated filter hook for this: add_filter('woocommerce_disable_password_change_notification', '__return_true'); Should ...
Mikepote's user avatar
  • 141
3 votes
Accepted

Disable New User Registration Email sent to Wordpress admin email on 4.9.5

the function wp_new_user_notification is one of the Pluggable Functions. In the documention you can read: Pluggable functions were introduced in WordPress 1.5.1 These functions let you override ...
user141080's user avatar
2 votes

Remove Update Notification (for all users except ADMIN)

this seems to work for me: add_action('admin_head', function() { if(!current_user_can('manage_options')){ remove_action( 'admin_notices', 'update_nag', 3 ); remove_action( '...
T.Todua's user avatar
  • 5,810
2 votes

Enable update notification, disable updates

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(...
Ethan O'Sullivan's user avatar
2 votes

Menu Item Location

The wp_nav_menu_items filter has a secondary parameter that it passes: $args. What we need to do is set up our filter to accept second args by passing a priority 10 and the number of args 2: ...
Howdy_McGee's user avatar
  • 20.7k
2 votes

How to change the email notification recipient (user) for new comments?

I'm not aware of any hook that could change only the comment notification recipient... You would probably need to overwrite some kind of core function, but here's a small workaround you could use: 1. ...
N00b's user avatar
  • 2,169
2 votes
Accepted

Show Admin Message on Redirect

Here's an updated version of your code that also handles the notification message using the Transients API. /** * If post status is pending, set transient containing error message and * change the ...
Dave Romsey's user avatar
  • 17.7k
2 votes

New Post Notifications for Users - BUDDYPRESS

If you check the function for 'publish_post' action. function bp_post_published_notification( $post_id, $post ) { $author_id = $post->post_author; /* Post author ID. */ if ( bp_is_active( ...
JItendra Rana's user avatar
2 votes
Accepted

Getting admin notices to appear after page refresh

You should use set_transient this is stored and will show up after the page reloads as it is like cookies on the server side. function SITE_profile_update_notice() { // Add this to your code where ...
Sam's user avatar
  • 367
2 votes

Look for one plugin which could send notification to any email when post publish

you can use following plugin for your post notification Better Notifications for WordPress Download wordpress publish post email notification
Niket Joshi's user avatar
2 votes

Add notification bubble notice in navigation using transients

Thanks again for the help @jdm2112. Updated a few syntax errors and used the same structure you suggested, works great! // Add notification bubble to custom post type menu nav add_action( '...
Simon's user avatar
  • 417
2 votes

How to add notification in the sidebar of the administration panel when a Custom post type is created?

It is shockingly simple: you have to dyamically set the admin page title, adding a specific markup: <span class='awaiting-mod count-3'> <span class='pending-count'>3</span> </...
Fabrizio Mele's user avatar
2 votes

“before delete post” action fire when the post is updated?

The hook before_delete_post fires before postmeta is deleted. That explains why it's not isolating the condition you want. Another part of the problem is you're trying to add postmeta while it is ...
WebElaine's user avatar
  • 9,430
2 votes
Accepted

admin_notices not working in post editor

So it looks like there is some page redirecting going on in the post updating process, hence why I can't even access a $GLOBALS variable. The only alternative I found to use was to use a session ...
Talk Nerdy To Me's user avatar
2 votes

Save value from Javascript object to WP user

First off your setup is quite hard to understand. It seems that the only reason that you are exchanging data from client to server/ JS to PHP is that you have some global info JS object and some ...
kaiser's user avatar
  • 50.6k
2 votes

Send a conditional email notification when a custom field value changes in Post Type

There's no way to do this without a bit of programming. You need to look at these pieces: A Wordpress hook like save_post lets you do something when a post is saved or updated wp_mail is how you send ...
mozboz's user avatar
  • 2,568
2 votes

Send a review notification email to admin when a post is 12 months old

You ask a good question, where I would put it or how I would call it? I don't think you want to loop over all the posts everytime somebody visiting your site checking if any of them are more than one ...
Ivan Shatsky's user avatar
2 votes
Accepted

Where are the admin notifications stored?

Where are the admin notifications stored? They aren't. Admin notices have no storage unless you implement it yourself for your plugin/theme. WordPress provides hooks and styling for displaying admin ...
Tom J Nowell's user avatar
  • 59.5k
2 votes
Accepted

Modify wp_installed_email / wp_new_blog_notification

I found a solution: mu-plugins. My code isn't executed in this early state, but that's what mu-plugins are for. https://wordpress.org/support/article/must-use-plugins/ This did the trick.
parvaneh's user avatar
1 vote

Add notification bubble notice in navigation using transients

Using your original code, I pulled the query/count/cache code to a separate function. I have not had a chance to test any of this yet so my apologies if you hit any errors. Post here if you do and ...
jdm2112's user avatar
  • 3,676
1 vote
Accepted

Sending comment notifications to different recipients depending on taxonomy terms

Finally I found the right code, if it can be usefull to someone: function sp_comment_moderation_recipients( $emails, $comment_id ) { $comment = get_comment( $comment_id ); $post = get_post( $...
Mahe Neel's user avatar
1 vote
Accepted

New Post Notifications for Users - BUDDYPRESS

Like JItendra Rana already mentioned, you just send a notification to the author. If all users should get a notification, you must loop through all your users and add a notification to everyone. You ...
ahendwh2's user avatar
  • 696

Only top scored, non community-wiki answers of a minimum length are eligible