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

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
0
Not saving when inserting iframe 2
PickPlugins
May 20, 2021
Flag(0)

Welcome to our forum.

Now i understand the issue, sorry about that, recent security update was force by wordpress.org 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
David
- May 21, 2021 04:17 AM
Flag (0)
0

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

Sign in to Reply
Replying as Submit