theme_action_links_(stylesheet) хук-фильтр . WP 3.1.0
Filters the action links of a specific theme in the Multisite themes list table.
The dynamic portion of the hook name, $stylesheet
, refers to the directory name of the theme, which in most cases is synonymous with the template name.
Использование
add_filter( 'theme_action_links_(stylesheet)', 'filter_function_name_1781', 10, 3 ); function filter_function_name_1781( $actions, $theme, $context ){ // filter... return $actions; }
- $actions(строка[])
- An array of action links.
- $theme(WP_Theme)
- The current WP_Theme object.
- $context(строка)
- Status of the theme, one of 'all', 'enabled', or 'disabled'.
Список изменений
С версии 3.1.0 | Введена. |
Где вызывается хук
theme_action_links_(stylesheet)
theme_action_links_(stylesheet)
wp-admin/includes/class-wp-ms-themes-list-table.php 565
$actions = apply_filters( "theme_action_links_{$stylesheet}", $actions, $theme, $context );
wp-admin/includes/class-wp-themes-list-table.php 241
$actions = apply_filters( "theme_action_links_{$stylesheet}", $actions, $theme, 'all' );