Fires after a funnel has been saved from the funnel editor. Use this to sync changes to an external system or clear related caches.
do_action( 'groundhogg/admin/funnel/updated', $funnel );
You will receive the updated Funnel object.
Example
add_action( 'groundhogg/admin/funnel/updated', 'my_extension_clear_funnel_cache' );
/**
* Clear a cached funnel configuration when the funnel is updated.
*
* @param \Groundhogg\Funnel $funnel
*
* @return void
*/
function my_extension_clear_funnel_cache( $funnel ) {
delete_transient( 'my_extension_funnel_config_' . $funnel->get_id() );
}
Was this helpful?
Let us know if this document answered your question. Thatβs the only way we can improve.
