File "kses-allowed-html.php"
Full Path: /home/pumpbmko/public_html/wp-content/plugins/gutenberg/lib/experimental/font-face/kses-allowed-html.php
File size: 972 bytes
MIME-type: text/x-php
Charset: utf-8
<?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 );