Created
March 18, 2014 21:26
-
-
Save Shelob9/9630051 to your computer and use it in GitHub Desktop.
Plugin to allow admins to administer Pods in multisite.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Pods Admin Access | |
*/ | |
add_filter( 'pods_is_admin', 'slug_let_admins_admin', 10, 3 ); | |
function slug_let_admins_admin( $has_access, $cap, $capability ) { | |
$capability = 'admin'; | |
return $capability; | |
} |
10 out of 10 would recommend. Thanks for this life-saver!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dude. This made my day. Thanks!