Hi Brajesh,
I installed your plugin BuddyPress Notify Post Author on Blog Comment today, works great.
Question: can this be modified so that Admin does not receive notifications?
Looking at the plugin code, I see a bunch of “if/return early” statements for when a notification should not get sent.
Could I simply add a quick “check for admin capability” onto that list? Or is there a better way?eg.
`
//is the post author an admin?if ( user_can( $post->post_author, ‘manage_options’ ) ) {
return;
}`
Hi Michael,
Thank you for the question.WordPress does have the ability to notify admins out of the box. Please visit Dashboard->Settings->Discussion to configure it.
Regards
BrajeshHi Brajesh,
thanks, to clarify: I want authors to receive on-site notifications about comments on their posts, but Admin should NOT receive on-site notifications about comments on his (Admin’s) posts.
So I want to opt-out Admin from the functionality of your plugin.
The Dashboard>Settings>Discussion option refers to email notifications, I believe. So I don’t think that will help.
Current behavior after activating plugin:
– Authors receive on-site notifications about comments on their posts (great!)
– Admin receives on-site notifications about comments on his own posts (not desired)Thanks.
Hi Michael,
Thank you.Please change this line
from
if ( bp_is_active( 'blogs' ) && ! bp_disable_blogforum_comments() ) { return; }
to
if ( bp_is_active( 'blogs' ) && ! bp_disable_blogforum_comments() ) { return; } if ( is_super_admin( $user_id ) ) { return; }
Regards
Brajesh
The topic ‘ [Resolved] BuddyPress Notify Post Author on Blog Comment , modification possible?’ is closed to new replies.