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 | |
/** | |
* This code snippit will attempt to add 2 custom fields to the ConstantContact contact data array before being sent to the API | |
* @author Hudson Atwell | |
*/ | |
add_filter( 'inboundnow_constantcontact_lead_data' , 'add_custom_field' , 10 , 1 ); | |
function add_custom_field( $contact ) { | |
/* You may have to look at all the key/value pairs in the $_POST variable to discover the correct key name */ |
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 | |
/** | |
* Fix for 301 redirect - Removes redirect_canonical for homepage only | |
* @author Hudson Atwell (Inbound Now) | |
* | |
*/ | |
function inbound_redirect_canonical($redirect_url, $requested_url) { | |
if ( is_front_page()) { | |
return $requested_url; |
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 | |
/** | |
* inbound_store_lead_post runs as an ajax call during a tracked form submission | |
* | |
* Use $lead data in crafting 3rd party connection | |
*/ | |
add_action('inbound_store_lead_post','extension_send_data'); |
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 | |
/** | |
* inboundnow_form_submit_actions after form validationa and before user redirection. | |
*/ | |
add_action('inboundnow_form_submit_actions','extension_send_data' , 10 , 2 ); | |
/** | |
* This method will perform additional actions during the inboundnow_form_submit_actions hook |
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 | |
$Twitter_Auto_Follow = new Twitter_Auto_Follow(); | |
class Twitter_Auto_Follow { | |
static $TwitterAPIExchange; | |
public function __construct() { | |
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 | |
/* Remove all tracking classes from cart page */ | |
add_action('wp_footer' , 'inbound_remove_cart_tracking_class' ); | |
/** | |
* Removes tracking classes from forms containing the name 'proceeed' | |
*/ | |
function inbound_remove_cart_tracking_class() { | |
?> |
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
/* Record Impressions For Each Variation in CTA Object | |
* @param JSON ctas : a json string of {'cta':'vid'} | |
*/ | |
function wp_cta_record_impressions(ctas) { | |
/* Add Impressions to loaded varations*/ | |
jQuery.ajax({ | |
type: 'POST', | |
url: cta_reveal.admin_url, |
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( ‘inbound_lead_notification_email_headers’ , ‘some_function’ ); | |
function some_function( $headers ) { | |
$headers = "From: Custom From Name <customfromemail@yoursite.com>\r\n"; | |
return $headers; | |
} |
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
{ | |
"results_count": "800", | |
"results_per_page": "5", | |
"max_pages": 160, | |
"results": { | |
"96987": { | |
"ID": 96987, | |
"lists": { | |
"110": { | |
"term_id": 110, |
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
{ | |
"results_count": 1, | |
"results_per_page": 50, | |
"max_pages": 0, | |
"results": { | |
"96988": { | |
"ID": 96988, | |
"lists": { | |
"110": { | |
"term_id": 110, |