How to create a page that only multisite-admins can edit?
-
I am working on a plugin that creates a page with
wp_insert_post
– now I want to make sure that only users who are multisite-admins are able to edit this page. Is there an easy way to make sure of that? I have been looking atcurrent_user_can
and theWP_Roles
class but couldn’t find a way to take just one page away from all roles except the multisite-admin one.
- The topic ‘How to create a page that only multisite-admins can edit?’ is closed to new replies.