Reply To: Maintain Messages in Database after user deletion


Home Forums Front End PM PRO Maintain Messages in Database after user deletion Reply To: Maintain Messages in Database after user deletion

#41708
shamim
Keymaster

So as i understand delete do not do anything in your use case. You can remove delete option so that nobody can delete a message.
Please add following code in your theme’s (child theme’s if you are using) functions.php

add_filter( 'fep_message_table_bulk_actions', function( $actions ){
	unset( $actions['delete'] );
	return $actions;
});

Let me know if this helps.