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
| <?php | |
| add_filter( 'gpnf_init_script_args_508_2', 'my_nested_forms_args' ); | |
| function my_nested_forms_args( $args ) { | |
| $args['modalWidth'] = 900; | |
| $args['modalHeight'] = 900; | |
| return $args; | |
| } |
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
| <?php | |
| // basic usage | |
| add_filter( 'gpnf_item_labels', 'my_item_labels' ); | |
| function my_item_labels() { | |
| return array( | |
| 'singular' => __( 'employee', 'gravityperks' ), | |
| 'plural' => __( 'employees', 'gravityperks' ) | |
| ); | |
| } |
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
| <?php | |
| /** | |
| * Gravity Wiz // Gravity Perks // Get Sum of Nested Form Fields | |
| * | |
| * Get the sum of a column from a Gravity Forms List field. | |
| * | |
| * @version 1.3 | |
| * @author David Smith <[email protected]> | |
| * @license GPL-2.0+ | |
| * @link http://gravitywiz.com/... |
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
| /** | |
| * Gravity Perks // GP Limit Choices // Spots Left + Waiting List Message | |
| * | |
| * Allows you to display the number of spots left in the label of each choice. If there are no spots left, will display a waiting list message. | |
| * | |
| * @link http://gravitywiz.com/documentation/gp-limit-choices/ | |
| */ | |
| add_filter( 'gplc_remove_choices', '__return_false' ); | |
| add_filter( 'gplc_disable_choices', '__return_false' ); |
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
| <?php | |
| /** | |
| * Gravity Wiz // Gravity Forms // Rounding by Increment | |
| * | |
| * Provides a variety of rounding functions for Gravity Form Number fields powered by the CSS class setting for each field. Functions include: | |
| * | |
| * + rounding to an increment (i.e. increment of 100 would round 1 to 100, 149 to 100, 150 to 200, etc) | class: 'gw-round-100' | |
| * + rounding up by an increment (i.e. increment of 50 would round 1 to 50, 51 to 100, 149 to 150, etc) | class: 'gw-round-up-50' | |
| * + rounding down by an increment (i.e. increment of 25 would round 1 to 0, 26 to 25, 51 to 50, etc) | class: 'gw-round-down-25' | |
| * + rounding up to a specific minimum (i.e. min of 50 would round 1 to 50, 51 and greater would not be rounded) | class: 'gw-round-min-50' |
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
| <?php | |
| /** | |
| * Gravity Wiz // Gravity Forms // Field-specific Upload Path | |
| * | |
| * Provides a method for specifying field-specific file upload paths. | |
| * | |
| * @version 1.0 | |
| * @author David Smith <[email protected]> | |
| * @license GPL-2.0+ | |
| * @link http://gravitywiz.com/... |
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
| <?php | |
| /** | |
| * Gravity Wiz // Gravity Forms // User-specific Upload Paths | |
| * | |
| * Modifies the default Gravity Forms file upload path to user-specific (based on the user login) upload paths. | |
| * If the user's login were "john315", the upload path would be ".../wp-content/uploads/john315/". | |
| * If the user is not logged in, the default GF upload path will be used. | |
| * | |
| * @version 1.0 | |
| * @author David Smith <[email protected]> |
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
| <?php | |
| /** | |
| * Gravity Wiz // Gravity Forms // Get Custom Choices Helper Function | |
| * | |
| * A function that accepts a group name of one of your Gravity Form "Custom Choices" (http://grab.by/yNaS) and | |
| * returns an array with the text and value options for each choice. | |
| * | |
| * @author David Smith <[email protected]> | |
| * @license GPL-2.0+ | |
| * @link http://gravitywiz.com/... |
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
| <?php | |
| /** | |
| * Gravity Wiz // Gravity Forms // Field-specific Upload Path | |
| * | |
| * Provides a method for specifying field-specific file upload paths. | |
| * | |
| * @version 1.0 | |
| * @author David Smith <[email protected]> | |
| * @license GPL-2.0+ | |
| * @link http://gravitywiz.com/... |
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
| <?php | |
| /** | |
| * Gravity Wiz // Gravity Forms // Populate Field With User Meta | |
| * | |
| * Populate choice-based fields (i.e. drop downs, radios, checkboxes) with data from WordPress users. | |
| * | |
| * @version 1.0 | |
| * @author David Smith <[email protected]> | |
| * @license GPL-2.0+ | |
| * @link http://gravitywiz.com/... |