install_theme_complete_actions хук-фильтр . WP 2.8.0
Filters the list of action links available following a single theme installation.
Использование
add_filter( 'install_theme_complete_actions', 'filter_function_name_3553', 10, 4 ); function filter_function_name_3553( $install_actions, $api, $stylesheet, $theme_info ){ // filter... return $install_actions; }
- $install_actions(строка[])
- Array of theme action links.
- $api(объект)
- Object containing WordPress.org API theme data.
- $stylesheet(строка)
- Theme directory name.
- $theme_info(WP_Theme)
- Theme object.
Список изменений
С версии 2.8.0 | Введена. |
Где вызывается хук
install_theme_complete_actions
wp-admin/includes/class-theme-installer-skin.php 184
$install_actions = apply_filters( 'install_theme_complete_actions', $install_actions, $this->api, $stylesheet, $theme_info );
Где используется хук в ядре WordPress
wp-admin/includes/class-theme-installer-skin.php 155
add_filter( 'install_theme_complete_actions', array( $this, 'hide_activate_preview_actions' ) );
wp-admin/includes/class-theme-installer-skin.php 170
add_filter( 'install_theme_complete_actions', '__return_false', 999 ); // Don't show any actions after installing the theme.
wp-admin/includes/class-theme-installer-skin.php 183
add_filter( 'install_theme_complete_actions', array( $this, 'hide_activate_preview_actions' ) );
wp-admin/includes/class-theme-installer-skin.php 187
remove_filter( 'install_theme_complete_actions', '__return_false', 999 );