Skip to content

Instantly share code, notes, and snippets.

@jamesgol
Created October 25, 2019 04:19
Show Gist options
  • Save jamesgol/39f5404ba766563780f33b6ff3eaa1f8 to your computer and use it in GitHub Desktop.
Save jamesgol/39f5404ba766563780f33b6ff3eaa1f8 to your computer and use it in GitHub Desktop.
Pods GF Capability quick fix
add_filter( 'pods_roles_get_capabilities', 'temp_fix_for_gf_pods', 10, 1 );
function temp_fix_for_gf_pods( $capabilities ) {
if ( version_compare( '2.7.15', PODS_VERSION, '<=' ) && is_callable( 'GFCommon::all_caps' ) ) {
$capabilities = array_merge( $capabilities, GFCommon::all_caps() );
}
return $capabilities;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment