acf/update_(hook_name)_active_status хук-событиеACF 6.0.0

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

Использование

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(массив)
The updated ACF post array.

Список изменений

С версии 6.0.0 Введена.

Где вызывается хук

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

Где используется хук в Advanced Custom Fields PRO

Использование не найдено.