Manage access to FlyingPress
Access to the FlyingPress dashboard and features is by default restricted to users with the roles of "administrator" and "editor". Use the flying_press_allowed_roles filter to modify access permissions by extending or restricting the allowed roles.
Add new roles:
add_filter('flying_press_allowed_roles', function ($roles) {
$roles[] = 'subscriber';
return $roles;
});
Only allow selected roles:
add_filter('flying_press_allowed_roles', function ($roles) {
$roles = ['administrator'];
return $roles;
});
Updated on: 18/12/2023
Thank you!