Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
firepot
/
wp-content
/
plugins
/
gutenberg
:
kses-allowed-html.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * Modifies the wp_kses_allowed_html array. * * @package gutenberg */ /** * Add the form elements to the allowed tags array. * * @param array $allowedtags The allowed tags. * * @return array The allowed tags. */ function gutenberg_kses_allowed_html( $allowedtags ) { if ( ! gutenberg_is_experiment_enabled( 'gutenberg-form-blocks' ) ) { return $allowedtags; } $allowedtags['input'] = array( 'type' => array(), 'name' => array(), 'value' => array(), 'checked' => array(), 'required' => array(), 'aria-required' => array(), 'class' => array(), ); $allowedtags['label'] = array( 'for' => array(), 'class' => array(), ); $allowedtags['textarea'] = array( 'name' => array(), 'required' => array(), 'aria-required' => array(), 'class' => array(), ); return $allowedtags; } add_filter( 'wp_kses_allowed_html', 'gutenberg_kses_allowed_html', 10, 2 );