Reply To: Exempt admin from Pending Messages


Home Forums Front End PM PRO Exempt admin from Pending Messages Reply To: Exempt admin from Pending Messages

#28076
Shamim Hasan
Keymaster

You can add following code in your theme’s (child theme’s if you are using) functions.php

add_filter( 'fep_filter_message_before_send', function( $message ) {
	if ( fep_is_user_admin() ) {
		$message['mgs_status'] = 'publish';
	}
	return $message;
});