after_theme_row_{$stylesheet}
Action HookDescription
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.Hook Information
File Location |
wp-admin/includes/class-wp-ms-themes-list-table.php
View on GitHub
|
Hook Type | Action |
Line Number | 1047 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$stylesheet
|
Directory name of the theme. |
WP_Theme
|
$theme
|
Current WP_Theme object. |
string
|
$status
|
Status of the theme. |
Usage Examples
Basic Usage
<?php
// Hook into after_theme_row_{$stylesheet}
add_action('after_theme_row_{$stylesheet}', 'my_custom_function', 10, 3);
function my_custom_function($stylesheet, $theme, $status) {
// Your custom code here
}
Source Code Context
wp-admin/includes/class-wp-ms-themes-list-table.php:1047
- How this hook is used in WordPress core
<?php
1042 *
1043 * @param string $stylesheet Directory name of the theme.
1044 * @param WP_Theme $theme Current WP_Theme object.
1045 * @param string $status Status of the theme.
1046 */
1047 do_action( "after_theme_row_{$stylesheet}", $stylesheet, $theme, $status );
1048 }
1049 }
PHP Documentation
<?php
/**
* 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.
*
* @since 3.5.0
*
* @param string $stylesheet Directory name of the theme.
* @param WP_Theme $theme Current WP_Theme object.
* @param string $status Status of the theme.
*/
Quick Info
- Hook Type: Action
- Parameters: 3
- File: wp-admin/includes/class-wp-ms-themes-list-table.php
Related Hooks
Related hooks will be displayed here in future updates.