plugins_list_status_text хук-фильтрWP 7.0.0

Filters the status text of default switch case in the plugins list table.

Использование

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(строка)
Plugins list status text.
По умолчанию: empty string
$count(int)
Count of the number of plugins.
$type(строка)
The status slug being filtered.

Список изменений

С версии 7.0.0 Введена.

Где вызывается хук

WP_Plugins_List_Table::get_views()
plugins_list_status_text
wp-admin/includes/class-wp-plugins-list-table.php 595
$text = apply_filters( 'plugins_list_status_text', '', $count, $type );

Где используется хук в WordPress

Использование не найдено.