acf/update_(hook_name)_active_status action-hookACF 6.0.0

Fires immediately after an ACF post has been made active/inactive.

Usage

add_action( 'acf/update_(hook_name)_active_status', 'wp_kama_acf_update_hook_name_active_status_action' );

/**
 * Function for `acf/update_(hook_name)_active_status` action-hook.
 * 
 * @param array $updated_post The updated ACF post array.
 *
 * @return void
 */
function wp_kama_acf_update_hook_name_active_status_action( $updated_post ){

	// action...
}
$updated_post(array)
The updated ACF post array.

Changelog

Since 6.0.0 Introduced.

Where the hook is called

ACF_Internal_Post_Type::update_post_active_status()
acf/update_(hook_name)_active_status
acf/includes/class-acf-internal-post-type.php 794
do_action( "acf/update_{$this->hook_name}_active_status", $updated_post );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.