WC_Helper::get_all_plugin_keys
Keys of every installed plugin, as auto_update_plugins stores them.
Метод класса: WC_Helper{}
Хуки из метода
Возвращает
string[].
Использование
$result = WC_Helper::get_all_plugin_keys(): array;
Список изменений
| С версии 11.2.0 | Введена. |
Код WC_Helper::get_all_plugin_keys() WC Helper::get all plugin keys WC 11.2.2
private static function get_all_plugin_keys(): array {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
// Core's own filter, documented in wp-admin/includes/class-wp-plugins-list-table.php; applied here so this
// path sees the same plugin list core's auto-update toggle does.
// phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment, WooCommerce.Commenting.CommentHooks.MissingSinceComment -- Not a WooCommerce hook.
return array_keys( (array) apply_filters( 'all_plugins', get_plugins() ) );
}