Forums

How to create a page that only multisite-admins can edit? (1 post)

  1. dominikschwind-1
    Member
    Posted 4 months ago #

    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 at current_user_can and the WP_Roles class but couldn't find a way to take just one page away from all roles except the multisite-admin one.

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 4 months ago by dominikschwind-1
  • This topic is not resolved
  • WordPress version: 3.3.1