questions
-
Href are stripped from
<a>tags. examplewhen adding PHP code most of the code removed
I tried to add c++ code all the post content was removed
user cannot embed and image classes
(bfe-image--stretched bfe-image--backgrounded bfe-image--bordered )are not assigned to wp-block-image
my questions:
I wrote this code so users can embed
function iframe_wpkses_post_tags( $tags, $context ) { if ( 'post' === $context ) { $tags['iframe'] = array( 'src' => true, 'style' => true, 'allowfullscreen' => true, 'scrolling' => true, ); } return $tags; } add_filter( 'wp_kses_allowed_html', 'iframe_wpkses_post_tags', 10, 2 );is that a good idea?
and this for the
<mark>global $ALLOWEDTAGS; $ALLOWEDTAGS['MARK'] = ARRAY();
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘questions’ is closed to new replies.