Created
January 28, 2014 03:23
-
-
Save sc0ttkclark/8661802 to your computer and use it in GitHub Desktop.
Give all admins access to pods_is_admin
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 | |
function access_for_all_admins( $access ) { | |
if ( !$access && current_user_can( 'manage_options' ) ) { | |
$access = true; | |
} | |
return $access; | |
} | |
add_filter( 'pods_is_admin', 'access_for_all_admins' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment