Created
April 8, 2017 14:50
-
-
Save goldhat/065aa1a84e4e4735ea5c9b8d0b675e45 to your computer and use it in GitHub Desktop.
Filter gpls_rulegroups from Gravity Perks Submission Limits
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
// Method A - using form ID | |
add_filter('gpls_rulegroups', 'gpls_globalize'); | |
function gpls_globalize( $rulegroups ) { | |
return array_merge( $rulegroups, GPLS_RuleGroup::load_by_form( 2 ) ); | |
} | |
// Method B - using rulegroup id (GF feed ID) | |
add_filter('gpls_rulegroups', 'gpls_globalize'); | |
function gpls_globalize( $rulegroups ) { | |
$rulegroups[] = GPLS_RuleGroup::load_by_id( 60 ) ); | |
return $rulegroups; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment