acf/untrash_(hook_name)
Fires immediately after an ACF post has been untrashed.
Использование
add_action( 'acf/untrash_(hook_name)', 'wp_kama_acf_untrash_hook_name_action' );
/**
* Function for `acf/untrash_(hook_name)` action-hook.
*
* @param array $post The ACF post array.
*
* @return void
*/
function wp_kama_acf_untrash_hook_name_action( $post ){
// action...
}
- $post(массив)
- The ACF post array.
Список изменений
| С версии 5.0.0 | Введена. |
Где вызывается хук
acf/untrash_(hook_name)
acf/untrash_(hook_name)
acf/includes/class-acf-internal-post-type.php 677
do_action( "acf/untrash_{$this->hook_name}", $post );
acf/includes/post-types/class-acf-field-group.php 325
do_action( "acf/untrash_{$this->hook_name}", $post );
Где используется хук в Advanced Custom Fields PRO
acf/includes/local-json.php 52
add_action( 'acf/untrash_field_group', array( $this, 'update_field_group' ) );
acf/includes/local-json.php 56
add_action( 'acf/untrash_post_type', array( $this, 'update_internal_post_type' ) );
acf/includes/local-json.php 60
add_action( 'acf/untrash_taxonomy', array( $this, 'update_internal_post_type' ) );
acf/pro/post-types/acf-ui-options-page.php 288
add_action( 'acf/untrash_ui_options_page', array( $local_json, 'update_internal_post_type' ) );