Created
October 25, 2019 04:19
-
-
Save jamesgol/39f5404ba766563780f33b6ff3eaa1f8 to your computer and use it in GitHub Desktop.
Pods GF Capability quick fix
This file contains hidden or 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
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