after_theme_row_<stylesheet>
Fires after each specific row in the Multisite themes list table.
Description
do_action( 'after_theme_row_<stylesheet>', (string) $stylesheet, (WP_Theme) $theme, (string) $status );
The dynamic portion(s) of the hook name refer to the directory name of the theme, most often synonymous with the template name of the theme.
Parameters (3)
- 0. $stylesheet (string)
- Directory name of the theme.
- 1. $theme (WP_Theme)
- Current
WP_Theme
object. - 2. $status (string)
- Status of the theme.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'after_theme_row_{$stylesheet}', $stylesheet, $theme, $status );
- The following example is for adding a hook callback.
- // define the after_theme_row_<stylesheet> callback
- function action_after_theme_row_stylesheet( $stylesheet, $theme, $status ) {
- // make action magic happen here...
- };
- // add the action
- add_action( "after_theme_row_{$stylesheet}", 'action_after_theme_row_stylesheet', 10, 3 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( "after_theme_row_{$stylesheet}", 'action_after_theme_row_stylesheet', 10, 3 );
Defined (1)
The action is defined in the following location(s).
- /wp-admin/includes/class-wp-ms-themes-list-table.php
- do_action( "after_theme_row_{$stylesheet}", $stylesheet, $theme, $status );