Support reply may delay for 3 weeks due to corona virus outbreak, please send us email to
Ticket for: Accordions
Not saving when inserting iframe 1
May 19, 2021 02:30 PM 1 Answers
Member Since Jan 1970
Unsolved Solved Mark as Solved Mark as Unsolved
Subscribed Subscribe Not subscribe

I use the newest version of your plugin "Accordions". Every time I want to save a new item with an iframe within, it doesn't save it. It is just blank after saving. Please help me!

0 Subscribers
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
Not saving when inserting iframe 2
May 20, 2021

Welcome to our forum.

Now i understand the issue, sorry about that, recent security update was force by review team to sanitize all input, that’s why we used “wp_kses_post” function to filter HTML input, that’s causing the issue.

you need to use following code to allow iframe under content, please copy and paste following code under your theme functions.php file

function custom_wpkses_post_tags( $tags, $context ) {

$tags['iframe'] = array(
'src' => true,
'height' => true,
'width' => true,
'frameborder' => true,
'allowfullscreen' => true,

return $tags;

add_filter( 'wp_kses_allowed_html', 'custom_wpkses_post_tags', 10, 2 );

Not saving when inserting iframe 3
- May 21, 2021 04:17 AM
Flag (0)

Yes that worked, thank you. I think other people will need this same code.

Sign in to Reply
Replying as Submit