after_theme_row_(stylesheet) хук-событиеWP 3.5.0

Fires after each specific row in the Multisite themes list table.

The dynamic portion of the hook name, $stylesheet, refers to the directory name of the theme, most often synonymous with the template name of the theme.

Использование

add_action( 'after_theme_row_(stylesheet)', 'wp_kama_after_theme_row_stylesheet_action', 10, 3 );

/**
 * Function for `after_theme_row_(stylesheet)` action-hook.
 * 
 * @param string   $stylesheet Directory name of the theme.
 * @param WP_Theme $theme      Current WP_Theme object.
 * @param string   $status     Status of the theme.
 *
 * @return void
 */
function wp_kama_after_theme_row_stylesheet_action( $stylesheet, $theme, $status ){

	// action...
}
$stylesheet(строка)
Directory name of the theme.
$theme(WP_Theme)
Current WP_Theme object.
$status(строка)
Status of the theme.

Список изменений

С версии 3.5.0 Введена.

Где вызывается хук

WP_MS_Themes_List_Table::single_row()
after_theme_row_(stylesheet)
wp-admin/includes/class-wp-ms-themes-list-table.php 1019
do_action( "after_theme_row_{$stylesheet}", $stylesheet, $theme, $status );

Где используется хук в WordPress

wp-admin/includes/class-wp-ms-themes-list-table.php 992
remove_action( "after_theme_row_$stylesheet", 'wp_theme_update_row' );
wp-admin/includes/update.php 633
add_action( "after_theme_row_{$theme}", 'wp_theme_update_row', 10, 2 );