show_advanced_plugins
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'show_advanced_plugins', bool $show, string $type )
Описание
Существует два типа расширенных плагинов — must-use и drop-ins — которые можно использовать на одиночном сайте или в сети мультисайта.
Параметр $type позволяет различать тип расширенных плагинов для фильтрации их отображения. Контексты включают 'mustuse' и 'dropins'.
Оригинал (английский)
There are two types of advanced plugins – must-use and drop-ins – which can be used in a single site or Multisite network.
The $type parameter allows you to differentiate between the type of advanced plugins to filter the display of. Contexts include ‘mustuse’ and ‘dropins’.
Фильтруемое значение
Параметры
$show
bool
обязательный
$type
string
обязательный
Исходный код
wp-admin/includes/class-wp-plugins-list-table.php:142
if ( apply_filters( 'show_advanced_plugins', true, 'mustuse' ) ) {
История изменений
| Версия | Описание |
|---|---|
| 3.0.0 | Introduced. |

