Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Created March 18, 2014 21:26
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shelob9/9630051 to your computer and use it in GitHub Desktop.
Save Shelob9/9630051 to your computer and use it in GitHub Desktop.
Plugin to allow admins to administer Pods in multisite.
<?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;
}
@regnskygge
Copy link

Dude. This made my day. Thanks!

@marcd123
Copy link

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