acf/duplicate_(hook_name) action-hookACF 5.0.0

Fires immediately after an ACF post has been duplicated.

Usage

add_action( 'acf/duplicate_(hook_name)', 'wp_kama_acf_duplicate_hook_name_action' );

/**
 * Function for `acf/duplicate_(hook_name)` action-hook.
 * 
 * @param array $post The ACF post array.
 *
 * @return void
 */
function wp_kama_acf_duplicate_hook_name_action( $post ){
	// action...
}
$post(array)
The ACF post array.

Changelog

Since 5.0.0 Introduced.

Where the hook is called

ACF_Internal_Post_Type::duplicate_post()
acf/duplicate_(hook_name)
ACF_Field_Group::duplicate_post()
acf/duplicate_(hook_name)
acf/includes/class-acf-internal-post-type.php 761
do_action( "acf/duplicate_{$this->hook_name}", $post );
acf/includes/post-types/class-acf-field-group.php 383
do_action( "acf/duplicate_{$this->hook_name}", $post );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.