This file contains hidden or 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
/** | |
* CF7 Optimize Enqueue | |
*/ | |
add_action( 'wp_enqueue_scripts', 'cf7_optimize_equeues' ); | |
add_action( 'admin_enqueue_scripts', 'cf7_optimize_equeues' ); | |
function cf7_optimize_equeues(){ | |
global $post; | |
if( !class_exists( 'WPCF7' ) || !$post ) { | |
return; |
This file contains hidden or 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( 'acf/location/rule_types', 'acf_location_rules_types', 999 ); | |
function acf_location_rules_types( $choices ) { | |
$tax_label = __( 'News Type' ); //<--YOUR LABEL | |
$key = __('Forms', 'acf'); | |
if ( ! isset( $choices[ $key ] ) ) { | |
$choices[ $key ] = []; | |
} |
This file contains hidden or 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
function curl_to_hubspot($entry, $str_post, $form_ID){ | |
$hubspotutk = $_COOKIE['hubspotutk']; | |
$portalID = '******'; //HubSpot USER ID | |
$hs_context = array( | |
'hutk' => $hubspotutk, | |
'ipAddress' => $entry['ip'], | |
'pageURL' => $entry['source_url'], | |
'pageName' => get_the_title( $entry['post_id']) |
NewerOlder