plugins_list_status_text
Filters the status text of default switch case in the plugins list table.
Usage
add_filter( 'plugins_list_status_text', 'wp_kama_plugins_list_status_text_filter', 10, 3 );
/**
* Function for `plugins_list_status_text` filter-hook.
*
* @param string $text Plugins list status text.
* @param int $count Count of the number of plugins.
* @param string $type The status slug being filtered.
*
* @return string
*/
function wp_kama_plugins_list_status_text_filter( $text, $count, $type ){
// filter...
return $text;
}
- $text(string)
- Plugins list status text.
Default: empty string - $count(int)
- Count of the number of plugins.
- $type(string)
- The status slug being filtered.
Changelog
| Since 7.0.0 | Introduced. |
Where the hook is called
plugins_list_status_text
wp-admin/includes/class-wp-plugins-list-table.php 595
$text = apply_filters( 'plugins_list_status_text', '', $count, $type );