groundhogg/admin/funnel/updated

πŸ“… Published on

πŸ“ Last updated

Documentation

Β»

Action Hooks

Β»

groundhogg/admin/funnel/updated

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.