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
# Steps we will take: | |
# 1. Change Local (Docker Machine) image type (this will take a bit) | |
# 2. Resize image | |
# 3. Resize partion | |
# | |
# Also see: https://docs.docker.com/articles/b2d_volume_resize/ | |
# IMPORTANT: Make sure Local is not running! | |
VM_NAME="local-by-flywheel" | |
NEW_DISK_SIZE=50000 |
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
<?php | |
/** | |
* Gravity Perks // Nested Forms // Force {Parent} Merge Tag Replacement on Submission | |
* http://gravitywiz.com/documentation/gravity-forms-nested-forms/ | |
*/ | |
add_filter( 'gform_entry_post_save', function ( $entry, $form ) { | |
$pattern = '/{Parent\:(.+)}/i'; | |
foreach ( $form['fields'] as &$field ) { | |
if ( $field->get_input_type() == 'form' ) { |
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
<?php | |
/** | |
* See https://gravitywiz.com/documentation/how-do-i-install-a-snippet/ for details on how to install snippets like these. | |
* | |
* The following snippet allows you to use an array to populate the field choices. | |
* | |
* This will use whatever property is selected in the "Value Template" for the choices. | |
* | |
* FORMID is the form that the field with dynamically populated choices is on | |
* FIELDID is the field ID of the field that you wish to modify the choices for |
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
<?php | |
/** | |
* See https://gravitywiz.com/documentation/how-do-i-install-a-snippet/ for details on how to install snippets like these. | |
* | |
* Note: This snippet requires GP Auto Login 1.3.5 or newer. | |
* | |
* The following snippet allows you to conditionally auto-login based on whether or not a field has a value | |
* or is checked. | |
* | |
* $form_id should be replaced with the form ID you wish to apply the login to. |
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
<?php | |
/** | |
* This template is based off of gp-nested-forms/templates/nested-entries.php | |
* | |
* Any modifications from the original have been noted. | |
* | |
* ==== Installation: ==== | |
* | |
* 1. Place this file in your theme under gp-nested-forms/nested-entries.php. The full path should look something like | |
* wp-content/themes/YOUR-THEME/gp-nested-forms/nested-entries.php |
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
<?php | |
/** | |
* See https://gravitywiz.com/documentation/how-do-i-install-a-snippet/ for details on how to install snippets like these. | |
* | |
* The following snippet allows you to use a checkbox field as choices. | |
* | |
* This will use whatever property is selected in the "Value Template" for the choices. | |
* | |
* FORMID is the form that the field with dynamically populated choices is on | |
* FIELDID is the field ID of the field that you wish to modify the choices for |
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
<?php | |
/** | |
* See https://gravitywiz.com/documentation/how-do-i-install-a-snippet/ for details on how to install snippets like these. | |
* | |
* The following snippet will set the values in Gravity Forms admin entry view to show the values rather than choices. | |
** | |
* $form_id is the form you wish to restrict | |
*/ | |
add_action('admin_init', function() { |
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
<?php | |
/** | |
* See https://gravitywiz.com/documentation/how-do-i-install-a-snippet/ for details on how to install snippets like these. | |
* | |
* Requires GP Populate Anything 1.0-beta-3.38 or newer | |
*/ | |
add_filter( 'gppa_object_type_user_limit_to_current_site', '__return_false' ); |
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
<!-- | |
Gravity Perks // GP Copy Cat // Copy Label (instead of Value) | |
http://gravitywiz.com/documentation/gravity-forms-copy-cat/ | |
Instructions: | |
1. Add an HTML field to your form. | |
2. Copy and paste the entire contents of this snippet into the "Content" field setting. | |
--> | |
<script> | |
gform.addFilter( 'gppc_copied_value', function( value, $elem, data, sourceValues ) { |
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
<!-- | |
Gravity Perks // GP Populate Anything // Conditionally Disable Dynamic Population and Live Merge Tags | |
https://gravitywiz.com/documentation/gravity-forms-populate-anything/ | |
Instructions: | |
1. Add an HTML field to your form. | |
2. Copy and paste the entire contents of this snippet into the "Content" field setting. | |
3. Change the value of window.disableGPPA to enable/disable dynamic population. | |
--> | |
<script> | |
window.gform.addFilter('gppa_batch_field_html_ajax_data', function(data) { |
OlderNewer