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 // Set Entry's "created_by" Property to Field Value | |
| * | |
| * Can be used in combination with the [GW Populate Users](https://gist.github.com/spivurno/03205e87b8196b5a87cd) snippet | |
| * to set the selected user as the creator of the entry. | |
| * | |
| * @version 1.0 | |
| * @author David Smith <[email protected]> | |
| * @license GPL-2.0+ |
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 // Populate Today's Date in Gravity Forms Date Field | |
| */ | |
| add_filter('gform_field_value_today', 'gw_today'); | |
| function gw_today() { | |
| return date( 'Y-m-d' ); | |
| } |
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 Users | |
| * | |
| * Populate choice-based fields (i.e. drop downs, radios, checkboxes) with data from WordPress users. | |
| * | |
| * The "query_args" parameter accepts any parameter accepted by WordPress' get_user() function. For a | |
| * full list of those parameters, please see: | |
| * | |
| * http://codex.wordpress.org/Function_Reference/get_users |
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 // Disable Submit Button Until Required Fields are Field Out | |
| * | |
| * Disable submit buttones until all required fields have been filled out. Currently only supports single-page forms. | |
| * | |
| * @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 // Multi-form Entry Exporter | |
| * | |
| * Allows you create a custom entry export containing fields from multiple forms. The custom export | |
| * is then displayed in the "Form" drop down menu in a "Multi-form Export" option group. | |
| * | |
| * @version 1.0 | |
| * @author David Smith <[email protected]> | |
| * @license GPL-2.0+ |
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 // Edit Products on Entry Detail | |
| * | |
| * Gravity Forms does not let you edit products on the entry detail page. This plugin let's you edit products. | |
| * | |
| * @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 // Notification Events | |
| * | |
| * Create custom notification events for Gravity Forms. Currently supports entry field update conditions. | |
| * | |
| * Future support will be added for time-based notification events, entry property updates, and more. | |
| * | |
| * @author David Smith <[email protected]> | |
| * @license GPL-2.0+ |
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 // Checkbox Count | |
| * | |
| * Get the total number of checkboxes checked. Useful when wanting to apply conditional logic based on the number of | |
| * checkboxes checked. | |
| * | |
| * @version 2.0 | |
| * @author David Smith <[email protected]> | |
| * @license GPL-2.0+ |
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 // Zip Uploaded Files | |
| * | |
| * Needs description. | |
| * | |
| * @version 1.1 | |
| * @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 // Product Count | |
| * | |
| * Get the total number of products selected. Particularly useful in combination with the GP Conditional Pricing | |
| * perk to create pricing rules based on product count. | |
| * | |
| * @version 1.0 | |
| * @author David Smith <[email protected]> | |
| * @license GPL-2.0+ |