Skip to content

Instantly share code, notes, and snippets.

@cliffordp
cliffordp / functions.php
Last active April 5, 2022 13:19
Gravity Forms Zoho CRM Add-On -- Decode HTML when sending to Zoho CRM so links work, such as link to the entry
<?php
/**
* Gravity Forms Zoho CRM - Decode HTML for Task Description & Lead Description so links work, such as link to the entry.
*
* @link https://gist.github.com/cliffordp/0d45eae807c190fed0a95de66a655224 This snippet.
* @link https://docs.gravityforms.com/gform_merge_tag_filter/#9-decode-modifier Alternative is to use a modifier like {entry_url:decode}
*/
add_filter( 'gform_zohocrm_task', 'cliff_zoho_crm_task_decode_description', 10, 4 );
if(
@uamv
uamv / gf-map-class-to-post-meta.php
Last active January 22, 2024 10:54
Save Gravity Form field data to post meta by adding a class to the field.
<?php
/**
* Save Gravity Form field data to post meta by adding a class to any field.
* Meta is mapped so that it is readable by Advanced Custom Fields
* Format class as…
* post_meta-{meta_key} -- for simple fields & writing lists as array to single meta record
* post_meta-{meta_key}-.3 -- for multi-input fields
* post_meta-{repeater_key}-1.{meta_key} -- for list fields mapped to meta readable by ACF
*/
// Run this function after the Gravity Form has created a post
@parmentf
parmentf / GitCommitEmoji.md
Last active May 2, 2024 20:29
Git Commit message Emoji