So I’m trying to hook this into Mailpoets load:
function action_mailpoet_pre_config_screen( $roles ) {
if ( isset( $roles['administrator'] ) && !current_user_can('level_10') ){
unset( $roles['administrator'] );
}
return $roles;
};
// add the action
add_action( 'mailpoet_pre_config_screen', 'action_mailpoet_pre_config_screen', 10, 0 );
But it’s not working at all :/ – can anyone possible lend a hand or give me some pointers?
Thanks in advance.