theme_row_meta
Filter HookDescription
Filters the array of row meta for each theme in the Multisite themes list table.Hook Information
File Location |
wp-admin/includes/class-wp-ms-themes-list-table.php
View on GitHub
|
Hook Type | Filter |
Line Number | 774 |
Hook Parameters
Type | Name | Description |
---|---|---|
string[]
|
$theme_meta
|
An array of the theme's metadata, including the version, author, and theme URI. |
string
|
$stylesheet
|
Directory name of the theme. |
WP_Theme
|
$theme
|
WP_Theme object. |
string
|
$status
|
Status of the theme. |
Usage Examples
Basic Usage
<?php
// Hook into theme_row_meta
add_filter('theme_row_meta', 'my_custom_filter', 10, 4);
function my_custom_filter($theme_meta, $stylesheet, $theme, $status) {
// Your custom filtering logic here
return $theme_meta;
}
Source Code Context
wp-admin/includes/class-wp-ms-themes-list-table.php:774
- How this hook is used in WordPress core
<?php
769 * the version, author, and theme URI.
770 * @param string $stylesheet Directory name of the theme.
771 * @param WP_Theme $theme WP_Theme object.
772 * @param string $status Status of the theme.
773 */
774 $theme_meta = apply_filters( 'theme_row_meta', $theme_meta, $stylesheet, $theme, $status );
775
776 echo implode( ' | ', $theme_meta );
777
778 echo '</div>';
779 }
PHP Documentation
<?php
/**
* Filters the array of row meta for each theme in the Multisite themes
* list table.
*
* @since 3.1.0
*
* @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.
*/
Quick Info
- Hook Type: Filter
- Parameters: 4
- File: wp-admin/includes/class-wp-ms-themes-list-table.php
Related Hooks
Related hooks will be displayed here in future updates.