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']; });