Home › Forums › Front End PM PRO › Publish Admin Message Directly › Reply To: Publish Admin Message Directly
May 17, 2018 at 5:35 pm
#14290
Shamim Hasan
Keymaster
add following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_filter_message_before_send', function( $message ){
if( fep_is_user_admin() ){
$message['post_status'] = 'publish';
}
return $message;
});