Disabling Comment Notifications for Post Author

I am trying to disable comment notifications for post authors (or anyone else besides the site’s admin) for a client’s site. I’ve attempted to create a plugin that uses the pluggable function wp_notify_postauthor, but it does not seem to have an effect. Here’s the plugin code: <?php /** * * * @package Disable_plugin_notifications * @author … Read more

How to add notification bubble for my custom admin menu page

I created my own contact form and I’m using WP_List_Table to display submitted forms in wp-admin. I edited this example WP_List_Table from github and it works fine. This is how I add my custom admin menu page: function contact_form_create() { add_menu_page(‘Contact Forms’, ‘Contact Forms’, ‘administrator’, ‘contact-form’, ‘contact_form_page_handler’); } add_action(‘admin_menu’, ‘contact_form_create’); But now I want to … Read more

Chrome desktop notification example [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 4 years ago. Improve this question How does one use Chrome desktop notifications? I’d like that use that in my own code. Update: Here’s a … Read more

How to count number of functions attached to an action hook?

I have some actions like this function simple_notification() { echo ‘<div>This is a notification</div>’; } add_action( ‘site_notices’, ‘simple_notification’ ); function simple_notification2() { echo ‘<div>This is a notification</div>’; } add_action( ‘site_notices’, ‘simple_notification2’ ); function simple_notification3() { echo ‘<div>This is a notification</div>’; } add_action( ‘site_notices’, ‘simple_notification3′ ); Now i’m displaying those action by calling do_action in my … Read more

How to Make an admin_notices Message That Disappears Once the User Leaves That Particular Page?

It’s easy enough to find help with admin_notices which: show permanently in the admin screen only show when a particular kind of page is shown show until the user dismisses it But I can’t find help with creating a message which shows until the user leaves that particular page. ie. exactly what WordPress shows routinely … Read more

Send email when a new post is published [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 7 years ago. Improve this question I’m looking for a method, or plugin, that will allow me to do the following: User can signup to a ‘notifications’ … Read more