Skip to content

Instantly share code, notes, and snippets.

@phillipwilhelm
phillipwilhelm / gw-gravity-forms-set-entry-created-by.php
Created September 5, 2016 04:55 — forked from spivurno/gw-gravity-forms-set-entry-created-by.php
Gravity Wiz // Gravity Forms // Set Entry's "created_by" Property to Field Value
<?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+
@phillipwilhelm
phillipwilhelm / gw-populate-today-date.php
Created September 5, 2016 04:55 — forked from spivurno/gw-populate-today-date.php
Gravity Wiz // Populate Today's Date in Gravity Forms Date Field
<?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' );
}
@phillipwilhelm
phillipwilhelm / gw-gravity-forms-populate-users.php
Created September 5, 2016 04:56 — forked from spivurno/gw-gravity-forms-populate-users.php
Gravity Wiz // Gravity Forms // Populate Field With Users
<?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
@phillipwilhelm
phillipwilhelm / gw-gravity-forms-disable-submit.php
Created September 5, 2016 04:56 — forked from spivurno/gw-gravity-forms-disable-submit.php
Gravity Wiz // Gravity Forms // Disable Submit Button Until Required Fields are Field Out
<?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/...
@phillipwilhelm
phillipwilhelm / gw-gravity-forms-multi-form-export.php
Created September 5, 2016 04:57 — forked from spivurno/gw-gravity-forms-multi-form-export.php
Gravity Wiz // Gravity Forms // Multi-form Entry Exporter
<?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+
@phillipwilhelm
phillipwilhelm / gw-gravity-forms-edit-products.php
Created September 5, 2016 04:59 — forked from spivurno/gw-gravity-forms-edit-products.php
Gravity Wiz // Gravity Forms // Edit Products on Entry Detail
<?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/...
@phillipwilhelm
phillipwilhelm / gw-gravity-forms-notification-events.php
Created September 5, 2016 04:59 — forked from spivurno/gw-gravity-forms-notification-events.php
Gravity Wiz // Gravity Forms // Notification Events
<?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+
@phillipwilhelm
phillipwilhelm / gw-gravity-forms-checkbox-count.php
Created September 5, 2016 05:00
Gravity Wiz // Gravity Forms // Checkbox Count
<?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+
@phillipwilhelm
phillipwilhelm / gw-gravity-forms-zip-files.php
Created September 5, 2016 05:06 — forked from spivurno/gw-gravity-forms-zip-files.php
Gravity Wiz // Gravity Forms // Zip Uploaded Files
<?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/...
@phillipwilhelm
phillipwilhelm / gw-gravity-forms-product-count.php
Created September 5, 2016 05:07 — forked from spivurno/gw-gravity-forms-product-count.php
Gravity Wiz // Gravity Forms // Product Count
<?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+