/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/e2e-tests/plugins/post-formats.php
18 строк
515 B
Grzegorz (Greg) Ziółkowski
Tests: Extract e2e test utils to their own package (#13228)
15 янв 2019, 19:30
Не верифицирован
15 янв 2019, 19:30
b786aad
Код
Авторство
О чём код?
<?php /** * Plugin Name: Gutenberg Test Plugin, Post Formats Support * Plugin URI: https://github.com/WordPress/gutenberg * Author: Gutenberg Team * * @package gutenberg-test-plugin-post-formats */ add_theme_support( 'post-formats', array( 'image', 'gallery' ) ); add_action( 'init', 'gutenberg_test_plugin_post_formats_add_post_support', 11 ); /** * Add post-formats support to pages */ function gutenberg_test_plugin_post_formats_add_post_support() { add_post_type_support( 'page', 'post-formats' ); }