after_theme_row_(stylesheet)
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.
Usage
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(string)
- Directory name of the theme.
- $theme(WP_Theme)
- Current WP_Theme object.
- $status(string)
- Status of the theme.
Changelog
Since 3.5.0 | Introduced. |
Where the hook is called
after_theme_row_(stylesheet)
wp-admin/includes/class-wp-ms-themes-list-table.php 1038
do_action( "after_theme_row_{$stylesheet}", $stylesheet, $theme, $status );
Where the hook is used in WordPress
wp-admin/includes/class-wp-ms-themes-list-table.php 1011
remove_action( "after_theme_row_$stylesheet", 'wp_theme_update_row' );
wp-admin/includes/update.php 665
add_action( "after_theme_row_{$theme}", 'wp_theme_update_row', 10, 2 );