|

srfm_after_form_duplicated

Description

Fires after a form is duplicated, exposing both the new and the original form IDs. Use it to copy companion data (custom meta, integration mappings) to the duplicated form.

Parameters

  • $new_form_id (int) – The ID of the newly created (duplicated) form.
  • $form_id (int) – The ID of the original source form.

Hook Source

PHP
/**
* hook source
 */
do_action( 'srfm_after_form_duplicated', $new_form_id, $form_id );

Hook Usage

PHP
add_action( 'srfm_after_form_duplicated', 'my_callback', 10, 2 ); 
function my_callback( $new_form_id, $form_id ) { 
// Copy companion data to the new form. 
}

Hook Example

PHP
add_action( 'srfm_after_form_duplicated', 'my_callback', 10, 2 ); 
function my_callback( $new_form_id, $form_id ) { 
// Copy companion data to the new form.
 }
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top