Problem:
The issue here is that the custom was trying to add an IFRAME to a WYSIWYG field on a CRED form but when the customer saves the form the IFRAME isn't saved.
Solution:
The reason for this is that the iframe isn't in the allowed tags in CRED.
To add an iframe to the allowed tags add the following to your functions.php file
add_filter( 'wp_kses_allowed_html', 'esw_author_cap_filter',1,1 ); function esw_author_cap_filter( $allowedposttags ) { //Here put your conditions, depending your context if ( !current_user_can( 'publish_posts' ) ) return $allowedposttags; // Here add tags and attributes you want to allow $allowedposttags['iframe']=array( 'align' => true, 'width' => true, 'height' => true, 'frameborder' => true, 'name' => true, 'src' => true, 'id' => true, 'class' => true, 'style' => true, 'scrolling' => true, 'marginwidth' => true, 'marginheight' => true, ); return $allowedposttags; }
Then go to Toolset -> Settings -> Forms ->Content Filter and click "Select allowed HTML Tags" and ensure that iframe is ticked.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 14:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
This topic contains 8 replies, has 2 voices.
Last updated by 6 years, 9 months ago.
Assisted by: Shane.