/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/e2e-tests/plugins/connectors-empty-state.php
19 строк
539 B
Jorge Costa
Connectors: Add empty state when no connectors are registered (#76375)
11 мар 2026, 17:02
Не верифицирован
11 мар 2026, 17:02
5740956
Код
Авторство
О чём код?
<?php /** * Plugin Name: Gutenberg Test Connectors Empty State * Plugin URI: https://github.com/WordPress/gutenberg * Author: Gutenberg Team * * Removes the default connector data so the Connectors page renders its empty state. * * @package gutenberg-test-connectors-empty-state */ // Remove the Gutenberg filter that provides default connector data. add_action( 'init', static function () { remove_filter( 'script_module_data_options-connectors-wp-admin', '_gutenberg_get_connector_script_module_data' ); }, PHP_INT_MAX );