/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/e2e-tests/plugins/lightbox-allow-editing-false-enabled-false.php
26 строк
619 B
Artemio Morales
Lightbox UI block override tests (#61414)
07 май 2024, 14:56
Не верифицирован
07 май 2024, 14:56
36cb787
Код
Авторство
О чём код?
<?php /** * Plugin Name: Lightbox Allow Editing False Enabled False * Plugin URI: https://github.com/WordPress/gutenberg * Author: Gutenberg Team * * @package gutenberg-lightbox-allow-editing-false-enabled-false */ function filter_theme_json_theme( $theme_json ) { $new_data = array( 'version' => 2, 'settings' => array( 'blocks' => array( 'core/image' => array( 'lightbox' => array( 'allowEditing' => false, 'enabled' => false, ), ), ), ), ); return $theme_json->update_with( $new_data ); } add_filter( 'wp_theme_json_data_theme', 'filter_theme_json_theme' );