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 | |
add_filter( 'cmb2_render_rental_fees', 'cmb2_render_rental_fees_callback', 10, 5 ); | |
function cmb2_render_rental_fees_callback( $field, $value, $object_id, $object_type, $field_type_object ) { | |
$prefix = '_tlc_'; | |
$value = wp_parse_args( $value, array( | |
'rental-rent' => '', | |
'rental-deposit' => '', |
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 | |
/* | |
* | |
* Save email in a cookie for ActiveCampaign | |
* | |
*/ | |
add_filter( 'gform_save_field_value', 'tlc_save_field_value', 10, 4); | |
function tlc_save_field_value( $value, $lead, $field, $form ) { | |
if ($field['label'] == 'Your Email') { // MAKE SURE THIS MATCHES THE NAME OF YOUR FIELD LABEL IN YOUR 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 | |
/* | |
* | |
* Website tracking for ActiveCampaign | |
* | |
*/ | |
add_filter('wp_head', 'tlc_ac_tracking_email'); | |
function tlc_ac_tracking_email() { |
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 | |
/* | |
* | |
* Checks to see if Gravity Forms exists | |
* | |
*/ | |
if( class_exists( 'GFForms' ) ) { | |
/* |