/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/e2e-tests/plugins/block-api.php
28 строк
595 B
Mitchell Austin
Have `createNewPost` wait for editor canvas contents (#51824)
05 июл 2023, 19:57
Не верифицирован
05 июл 2023, 19:57
f3da267
Код
Авторство
О чём код?
<?php /** * Plugin Name: Gutenberg Test Block API * Plugin URI: https://github.com/WordPress/gutenberg * Author: Gutenberg Team * * @package gutenberg-test-block-api */ /** * Registers a custom script for the plugin. */ function enqueue_block_api_plugin_script() { wp_enqueue_script( 'gutenberg-test-block-api', plugins_url( 'block-api/index.js', __FILE__ ), array( 'wp-blocks', 'wp-block-editor', 'wp-element', 'wp-hooks', ), filemtime( plugin_dir_path( __FILE__ ) . 'block-api/index.js' ), true ); } add_action( 'init', 'enqueue_block_api_plugin_script' );