Manage access to FlyingPress

The default access to the FlyingPress dashboard and features is limited to users with the roles of " administrator" and "editor". However, the "flying_press_allowed_roles" filter can extend or restrict the allowed roles.

Add a new role:

add_filter('flying_press_allowed_roles', function($roles){
   $roles[] = 'subscriber';
   return $roles;
});

Allow only selected roles:

add_filter('flying_press_allowed_roles', function($roles){
   return ['administrator'];
});
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.