apply_filters( 'plugins_list_status_text', string $text, int $count, string $type )
- Since
- 7.0.0
Filters the status text of default switch case in the plugins list table.
Compatibility
- WordPress
- since 7.0.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in 2 of the 5 tracked releases, added in 7.0.0.
Parameters
$textstring- Plugins list status text. Default empty string.
$countint- Count of the number of plugins.
$typestring- The status slug being filtered.
Where this hook fires · 1
wp-admin/includes/class-wp-plugins-list-table.php:633WP_Plugins_List_Table::get_views()
Source code
* @since 7.0.0 * * @param string $text Plugins list status text. Default empty string. * @param int $count Count of the number of plugins. * @param string $type The status slug being filtered. */ $text = apply_filters( 'plugins_list_status_text', '', $count, $type ); if ( empty( $text ) || ! is_string( $text ) ) { $text = $type; } $text = esc_html( $text ) . ' ' . sprintf( '<span class="count">(%s)</span>', number_format_i18n( $count )Changelog
Introduced in 7.0.0. Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.