/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/e2e-tests/plugins/hooks-api.php
30 строк
621 B
Riad Benguella
Deprecated the selectors/actions and components that moved to the block editor module (#15770)
10 июн 2019, 13:42
Не верифицирован
10 июн 2019, 13:42
a8e9692
Код
Авторство
О чём код?
<?php /** * Plugin Name: Gutenberg Test Hooks API * Plugin URI: https://github.com/WordPress/gutenberg * Author: Gutenberg Team * * @package gutenberg-test-hooks-api */ /** * Registers a custom script for the plugin. */ function enqueue_hooks_plugin_script() { wp_enqueue_script( 'gutenberg-test-hooks-api', plugins_url( 'hooks-api/index.js', __FILE__ ), array( 'wp-blocks', 'wp-components', 'wp-element', 'wp-block-editor', 'wp-hooks', 'wp-i18n', ), filemtime( plugin_dir_path( __FILE__ ) . 'hooks-api/index.js' ), true ); } add_action( 'init', 'enqueue_hooks_plugin_script' );