Notification when certain posts are published

Would you consider using a specific category or tag to use on posts that require notification? If so, you could use Peter’s Collaboration E-mails plugin which can automatically notify you (or other specific users) when a post is set to Pending, Scheduled, or Published. In the plugin settings, you can define specific categories, post tags, … Read more

How to split out BuddyPress notifications drop down items to their own top level? [closed]

Assuming that you are talking about the WP Toolbar, not the BuddyBar. (The basics of doing this for the BuddyBar are the same at the BP level, but the details of rendering the content are different.) It will be instructive to look at how BP itself builds its Notifications dropdown, in bp_members_admin_bar_notifications_menu() (bp-members/bp-members-adminbar.php). It uses … Read more

How to show a custom notification to a specific user?

You can show admin notices via the admin_notices action. You can display it for a specific user by checking the contents of the global $current_user: function wpa80367_admin_notice() { global $current_user; if ( ‘someusername’ == $current_user->user_login ): echo ‘<div class=”updated”><p>’; echo ‘This is an admin notice just for you, someusername.’; echo ‘</p></div>’; endif; } add_action( ‘admin_notices’, … Read more

How to send a BuddyPress user a notification on a plugin event? [closed]

First you need to setup component for this: function notifier_setup_globals() { global $bp, $current_blog; $bp->notifier = new stdClass(); $bp->notifier->id = ‘notifier’; $bp->notifier->slug = ‘notifier’; $bp->notifier->notification_callback = ‘bp_notifier_format_notifications’;//this is a function which gets notifications $bp->active_components[$bp->notifier->id] = $bp->notifier->id; do_action( ‘notifier_setup_globals’ ); } add_action( ‘bp_setup_globals’, ‘notifier_setup_globals’ ); To add notifications call something like this inside your action: bp_core_add_notification( … Read more

arguments for comment_notification_text filter

For the arguments, check the source: $notify_message = apply_filters( ‘comment_notification_text’, $notify_message, $comment_id ); You have two parameters. The first is the notification text itself, prior modification by your filter. It is constructed earlier in the same function and is different for comments, trackbacks, and pingbacks. The second parameter, as you might guess from the name, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)