theme_row_meta
Filters the array of row meta for each theme in the Multisite themes list table.
Usage
add_filter( 'theme_row_meta', 'wp_kama_theme_row_meta_filter', 10, 4 );
/**
* Function for `theme_row_meta` filter-hook.
*
* @param string[] $theme_meta An array of the theme's metadata, including the version, author, and theme URI.
* @param string $stylesheet Directory name of the theme.
* @param WP_Theme $theme WP_Theme object.
* @param string $status Status of the theme.
*
* @return string[]
*/
function wp_kama_theme_row_meta_filter( $theme_meta, $stylesheet, $theme, $status ){
// filter...
return $theme_meta;
}
- $theme_meta(string[])
- An array of the theme's metadata, including the version, author, and theme URI.
- $stylesheet(string)
- Directory name of the theme.
- $theme(WP_Theme)
- WP_Theme object.
- $status(string)
- Status of the theme.
Changelog
| Since 3.1.0 | Introduced. |
Where the hook is called
theme_row_meta
wp-admin/includes/class-wp-ms-themes-list-table.php 774
$theme_meta = apply_filters( 'theme_row_meta', $theme_meta, $stylesheet, $theme, $status );