Reply To: Using admin only – how can admin send emails to anyone?


Home Forums Front End PM PRO Using admin only – how can admin send emails to anyone? Reply To: Using admin only – how can admin send emails to anyone?

#16198
shamim
Keymaster

You can use conditional
eg.

add_filter( 'fep_menu_buttons', function( $menu ) {
    if ( isset( $_GET['fepaction'] ) && $_GET['fepaction'] == 'message_box' ){
    $menu['cus_button'] = array(
        'title'		=> __( 'Edit', 'front-end-pm' ),
	'action'	=> 'edit',
        'class'         => 'fep-button your_unique_class',
	'priority'	=> 15,
    );
    }
    return $menu;
});