theme_install_actions хук-фильтр . WP 3.4.0
Filters the install action links for a theme in the Install Themes list table.
Использование
add_filter( 'theme_install_actions', 'filter_function_name_8115', 10, 2 ); function filter_function_name_8115( $actions, $theme ){ // filter... return $actions; }
- $actions(строка[])
- An array of theme action links.
По умолчанию: are links to Install Now, Preview, and Details - $theme(WP_Theme)
- Theme object.
Список изменений
С версии 3.4.0 | Введена. |
Где вызывается хук
theme_install_actions
wp-admin/includes/class-wp-theme-install-list-table.php 349
$actions = apply_filters( 'theme_install_actions', $actions, $theme );