Title: [Plugin: WP-CMS Post Control] Super User Support
Last modified: August 19, 2016

---

# [Plugin: WP-CMS Post Control] Super User Support

 *  [aaronerk](https://wordpress.org/support/users/aaronerk/)
 * (@aaronerk)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-cms-post-control-super-user-support/)
 * I like your plugin, but found that it doesn’t support super users. Super users
   are global administrators for multi-site (formerly multi user) wordpress installations.
   I made a change to your pcore_userrole() method inc/wp-cms-class-pcontrol.php
   that makes super users look like administrators. It be great if you could include
   this into the plugin. Without the change super-admins will not be treated as 
   administrators and won’t get the effects of your plugin. Hope it helps.
 * function pcore_userrole() {
    global $current_user; get_currentuserinfo(); $theuser
   = new WP_User( $current_user->ID );
 *  if ( !empty( $theuser->roles ) && is_array( $theuser->roles ) ) {
    foreach (
   $theuser->roles as $role ) $theuserrole=$role; }
 *  if ( (!isset($theuserrole) || is_null($theuserrole) )
    && is_super_admin($theuser-
   >ID) ) { $theuserrole = “administrator”; }
 *  return $theuserrole;
    }
 * [http://wordpress.org/extend/plugins/wp-cms-post-control/](http://wordpress.org/extend/plugins/wp-cms-post-control/)

The topic ‘[Plugin: WP-CMS Post Control] Super User Support’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-cms-post-control_84aeba.svg)
 * [WP-CMS Post Control](https://wordpress.org/plugins/wp-cms-post-control/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cms-post-control/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cms-post-control/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cms-post-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cms-post-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cms-post-control/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [aaronerk](https://wordpress.org/support/users/aaronerk/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-cms-post-control-super-user-support/)
 * Status: not resolved