acf/update_(hook_name)_active_status
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/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 );