Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 454727

Add filter to capability settings

$
0
0

Replies: 0

Hi,

it would be great, if you add some filter to custom roles – because now I must add to role capability activate_plugins and manage_network_plugins to be able create copy to another website. The best solution is when I can set it this for specific role lie:


add_filter('my_specific_role', function($roles) {
   $roles['my_role_name'] = 'edit_posts';
   return $roles;    
});

Viewing all articles
Browse latest Browse all 454727

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>