Skip to content

Instantly share code, notes, and snippets.

@verygoodplugins
Last active June 4, 2021 10:00
Show Gist options
  • Save verygoodplugins/d2bbc8c918a564e0526c94ad0f5a6f70 to your computer and use it in GitHub Desktop.
Save verygoodplugins/d2bbc8c918a564e0526c94ad0f5a6f70 to your computer and use it in GitHub Desktop.
Allows creating tags on the fly in Ontraport, similar to ActiveCampaign and Drip
<?php
function declare_tags_support() {
wp_fusion()->crm->supports = array( 'add_tags' );
add_filter( 'wpf_apply_tags', array( wp_fusion()->crm, 'create_new_tags' ) );
}
add_action( 'wp_fusion_init', 'declare_tags_support' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment