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 | |
//Copy everything below this point | |
add_action( 'admin_head', function () { ?> | |
<style> | |
header.gform-settings-header .gform-settings__wrapper { | |
/* this will hide the whole thing, including image */ | |
display: none; | |
} |
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 | |
//Code provided by Gravity Forms here: https://rocketgenius.pxf.io/limit-payments | |
//Start copying below this line... | |
add_action( 'gform_post_add_subscription_payment', function ( $entry ) { | |
gf_stripe()->log_debug( "Running..." ); | |
if ( rgar( $entry, 'payment_status' ) == 'Active' ) { | |
$feed = gf_stripe()->get_payment_feed( $entry ); |
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 | |
// Copy everything below this line | |
add_filter( 'gform_field_value_default_quantity', 'gr_default_qty' ); | |
function gr_default_qty() { | |
return 0; // change this number to your desired default quantity | |
} |
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
<script> | |
jQuery(document).ready(function($) { | |
$('input[type=radio], select').on('change', function() { | |
$(this).closest("form").submit(); | |
}); | |
}); | |
</script> |
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 | |
//copy everything below this line | |
/** | |
* GravityRanger Login Logout Shortcode | |
* | |
* Creates a login/logout shortcode button | |
* https://gravityranger.com/login-logout-shortcode-for-gravity-forms-membership-sites/ | |
* | |
* Used for creating a login/logout shortcode to be used with a WordPress website. |
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 | |
// Copy everything below this line | |
/** | |
* GravityRanger Dual Confirmation (text + redirect) | |
* https://gravityranger.com/display-text-confirmation-before-redirecting-gravity-forms | |
* | |
* Uses the gform_confirmation hook to display a text confirmation message before triggering the redirect confirmation. | |
* This code is a modified version of the snippet provided on docs.gravityfroms.com | |
* |
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
/** | |
* GravityRanger | |
* https://gravityranger.com/display-text-confirmation-before-redirecting-gravity-forms/ | |
* | |
* Used to display a text message after a form is submitted, but triggers a redirect 2 seconds after message is displayed. | |
* | |
* Instructions: Copy and paste lines 11-17 into a Gravity Forms text confirmaton. Make any necessary changes to the text or number of seconds, i.e 2000 = 2 seconds, (line 16). | |
* | |
*/ |
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
/** | |
* GravityRanger Auto-Submit Form on Page Load | |
* | |
* Allows you to auto-submit a form when the page loads, with a 1/2 second delay. | |
* https://gravityranger.com/auto-submit-form-page-load/ | |
* | |
* @instructions: | |
* | |
* 1. Change gform_ID# to your forms ID number (line 24) | |
* 2. Set the amount of time you'd like to delay the script (line 27) |