- PremiumKey-OneFebruary 06, 2020 @ 1:40 pm
Hi, is it possible to block an iframe (i.e. containing a YouTube embed) inside a Custom Field?Moove AgencyFebruary 06, 2020 @ 3:05 pm
Thanks for using our plugins.
The requested feature could be achieved by using one of the following methods:
1. You can use a shortcode
[gdpr_iframe_blocker] Put iframe or URL here [/gdpr_iframe_blocker]if the Custom Field you are using supports shortcodes.
2. In your code where you display the custom field value, you can use the following action:
$content = apply_filters( 'gdpr_iframe_blocker_filter', $content );where
$contentis your custom field value.
You can find more details in GDPR Cookie Compliance -> Help, Hooks, Filters & Shortcodes (tab) section.
Hope this helps.AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)
Blocking iframe inside Custom Field
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.