theme_row_meta

Filters the array of row meta for each theme in the Multisite themes list table.

Description

apply_filters( 'theme_row_meta', (array) $theme_meta, (string) $stylesheet, (WP_Theme) $theme, (string) $status ); 

Parameters (4)

0. $theme_meta (array)
An array of the theme's metadata, including the version, author, and theme URI.
1. $stylesheet (string)
Directory name of the theme.
2. $theme (WP_Theme)
WP_Theme object.
3. $status (string)
Status of the theme.

Usage

To run the hook, copy the example below.
  1. $theme_meta = apply_filters( 'theme_row_meta', $theme_meta, $stylesheet, $theme, $status ); 
  2.  
  3. if ( !empty( $theme_meta ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the theme_row_meta callback 
  2. function filter_theme_row_meta( $theme_meta, $stylesheet, $theme, $status ) { 
  3. // make filter magic happen here... 
  4. return $theme_meta
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'theme_row_meta', 'filter_theme_row_meta', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'theme_row_meta', 'filter_theme_row_meta', 10, 4 ); 

Defined (1)

The filter is defined in the following location(s).

/wp-admin/includes/class-wp-ms-themes-list-table.php  
  1. $theme_meta = apply_filters( 'theme_row_meta', $theme_meta, $stylesheet, $theme, $status );