Skip to content

Instantly share code, notes, and snippets.

geshem

Block or report user

Report or block geshem

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
@geshem
geshem / gf-cc-autofill-fix.txt
Last active Feb 15, 2019
Gravity Forms Credit Card Field Autofill Fix
View gf-cc-autofill-fix.txt
add_filter( 'gform_field_content', function ( $field_content, $field ) {
if ( $field->type == 'creditcard' ) {
$field_content = str_replace( ".1' id", ".1' autocomplete='cc-number' id", $field_content );
$field_content = str_replace( "_2_month'", "_2_month' autocomplete='cc-exp-month'", $field_content );
$field_content = str_replace( "_2_year'", "_2_year' autocomplete='cc-exp-year'", $field_content );
$field_content = str_replace( ".3' id", ".3' autocomplete='cc-csc' id", $field_content );
$field_content = str_replace( ".5' id", ".5' autocomplete='cc-name' id", $field_content );
}
return $field_content;
@geshem
geshem / Gravity Form to Google Sheets Script
Created Jul 23, 2018
Script for Google Sheets to push Gravity form entries to new row
View Gravity Form to Google Sheets Script
function doPost(e) {
if (!e) return;
var status = {};
var lock = LockService.getScriptLock();
lock.waitLock(30000);
try {
@geshem
geshem / Show-Visual-Builder-Content
Created Oct 19, 2017
Oxygen App builder show other visual builders content
View Show-Visual-Builder-Content
<?php
While (have_posts()) {
the_post();
the_content();
}
?>
You can’t perform that action at this time.