Trigger when Tags are changed, any tags, not one specific tag

Scenario: Create a benchmark that triggers a funnel when tags are changed, any tags, not one specific tag.

Using the Plugin API Benchmark.

You will need to add this snippet of code to either your theme's functions.php file or use a snippets plugin and add the snippet.

<?php

add_action( 'groundhogg/contact/tags_applied', 'listen_for_any_tag_change' );
add_action( 'groundhogg/contact/tags_removed', 'listen_for_any_tag_change' );

/**
 * A listener function for some arbitrary WordPress or plugin hook.
 * @param $contact \Groundhogg\Contact
 */
function listen_for_any_tag_change( $contact ){
    \Groundhogg\do_plugin_api_benchmark( 'any_tag_change', $contact );
}

Plugin API Benchmark

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us