Articles on: Developers

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

Was this article helpful?

Share your feedback

Cancel

Thank you!