SHARE
TWEET

Untitled

a guest Oct 3rd, 2013 39 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (!function_exists('wp_get_current_user')) {
  2.         include_once( ABSPATH . 'wp-admin/includes/pluggable.php' );
  3. }
  4.  
  5. if ( is_super_admin() ) {      
  6.         add_action( 'admin_init', 'myplugin_register');
  7.         add_action( 'admin_menu', 'myplugin_menu' );   
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top