Admin Check Suggestion
Right now your admin check is `if( $bp->loggedin_user->is_site_admin == 1 )`
This is great if your admin is sending a PM through the regular BP messaging interface. Unfortunately, this doesn’t cover when a plugin is sending a PM from the admin to a user. I’d suggest you add a check if $message_info->sender_id is a site admin and this will solve the problem. That way plugins can send from the site admin users without getting blocked by the plugin.
You must be logged in to reply to this topic.