Skip to content

Instantly share code, notes, and snippets.

David Smith spivurno

Block or report user

Report or block spivurno

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@spivurno
spivurno / gp-post-content-merge-tags-replace-merge-tags-template.php
Created Jul 2, 2017
Gravity Perks // GP Post Content Merge Tags // Replace Merge Tags via Code
View gp-post-content-merge-tags-replace-merge-tags-template.php
<?php ob_start(); ?>
ALL TEMPLATE CODE GOES HERE, INSIDE THE OUTPUT BUFFER.
<?php
echo gp_post_content_merge_tags()->replace_merge_tags( ob_get_clean() );
@spivurno
spivurno / gp-post-content-merge-tags-lastform.php
Created Jun 20, 2017
Gravity Perks // GP Post Content Merge Tags // Add Support for Lastform
View gp-post-content-merge-tags-lastform.php
<?php
/**
* Gravity Perks // GP Post Content Merge Tags // Add Support for Lastform
* http://gravityperks.com/
*/
add_filter( 'gform_post_process', function( $form ) {
global $lf_gform_processed;
if( ! rgpost( 'is_lastform' ) ) {
return $form;
@spivurno
spivurno / gw-gravity-forms-first-error-focus.php Gravity Wiz // Gravity Forms // Give First Validation Error Focus
View gw-gravity-forms-first-error-focus.php
<?php
/**
* Gravity Wiz // Gravity Forms // Give First Validation Error Focus
* http://gravitywiz.com/
*
* Plugin Name: Gravity Forms First Error Focus
* Plugin URI: https://gravitywiz.com/make-gravity-forms-validation-errors-mobile-friendlyer/
* Description: Automatically focus (and scroll) to the first field with a validation error.
* Author: Gravity Wiz
* Version: 1.1
@spivurno
spivurno / gw-gravity-forms-inventory.php
Last active Oct 10, 2019
Gravity Wiz // Gravity Forms // Better Inventory with Gravity Forms (aka Limit by Sum of Field Values)
View gw-gravity-forms-inventory.php
<?php
/**
* Gravity Wiz // Gravity Forms // Better Inventory with Gravity Forms
*
* Implements the concept of "inventory" with Gravity Forms by allowing the specification of a limit determined by the
* sum of a specific field, typically a quantity field.
*
* @version 2.16
* @author David Smith <david@gravitywiz.com>
* @license GPL-2.0+
@spivurno
spivurno / gw-gravity-forms-value-exists-validation.php
Last active Oct 5, 2019
Gravity Wiz // Gravity Forms // Validate that a Value Exists
View gw-gravity-forms-value-exists-validation.php
<?php
/**
* Gravity Wiz // Gravity Forms // Validate that a Value Exists
*
* Ensure that a value entered in Form A has been previously submitted on Form B. This is useful if you're generating a reference number of some sort
* on Form B and would like the user to enter it on Form A.
*
* @version 1.6
* @author David Smith <david@gravitywiz.com>
* @license GPL-2.0+
@spivurno
spivurno / gw-gravity-forms-edit-products.php
Last active Oct 2, 2019
Gravity Wiz // Gravity Forms // Edit Products on Entry Detail
View gw-gravity-forms-edit-products.php
<?php
/**
* Gravity Wiz // Gravity Forms // Edit Products & Payment Details
*
* Edit products (and payment details) via the Gravity Forms Edit Entry view.
*
* @version 1.3
* @author David Smith <david@gravitywiz.com>
* @license GPL-2.0+
* @link http://gravitywiz.com/
@spivurno
spivurno / gw-gravity-forms-daily-form-schedule.php
Last active Sep 30, 2019
Gravity Wiz // Gravity Forms // Daily Form Schedule
View gw-gravity-forms-daily-form-schedule.php
<?php
/**
* Gravity Wiz // Gravity Forms // Daily Form Schedule
*
* Allow your form schedule to apply daily.
*
* @version 1.0
* @author David Smith <david@gravitywiz.com>
* @license GPL-2.0+
* @link http://gravitywiz.com/
@spivurno
spivurno / gw-gravity-forms-quantity-as-decimal.php
Last active Sep 27, 2019
Gravity Wiz // Enable Decimal Values for Quantity Fields
View gw-gravity-forms-quantity-as-decimal.php
<?php
/**
* Gravity Wiz // Gravity Forms // Accept Decimal Values for Quantity Fields
*
* Allows you to accept decimal values in Quantity fields, converting any Quantity field into a weight field.
*
* @version 1.2
* @author David Smith <david@gravitywiz.com>
* @license GPL-2.0+
* @link http://gravitywiz.com/enable-decimal-values-in-quantity-fields/
View gw-gravity-forms-feed-specific-submit-button.php
<?php
/**
* Gravity Wiz // Gravity Forms // Feed-specific Submit Button
*
* Change the label of the submit button depending on which payment feed will be used to process the order. This can help
* set user expectation when conditionally redirecting to Stripe Checkout. Currently, this plugin is limited to Stripe.
*
* @version 1.1
* @author David Smith <david@gravitywiz.com>
* @license GPL-2.0+
@spivurno
spivurno / gw-gravity-forms-all-fields-template.php
Last active Sep 24, 2019
Gravity Wiz // Gravity Forms // All Fields Template
View gw-gravity-forms-all-fields-template.php
<?php
/**
* Gravity Wiz // Gravity Forms // All Fields Template
*
* Modify the {all_fields} merge tag output via a template file.
*
* @version 0.9.5
* @author David Smith <david@gravitywiz.com>
* @license GPL-2.0+
* @link https://gravitywiz.com/gravity-forms-all-fields-template/
You can’t perform that action at this time.