Support Forum Support Forum GDPR Cookie Compliance Blocking iframe inside Custom Field

Topic Resolution: Resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Premium
    AvatarKey-One
    February 06, 2020 @ 1:40 pm

    Hi, is it possible to block an iframe (i.e. containing a YouTube embed) inside a Custom Field?

    Moove AgencyMoove Agency
    February 06, 2020 @ 3:05 pm

    Hi Key-One,

    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 $content is your custom field value.

    You can find more details in GDPR Cookie Compliance -> Help, Hooks, Filters & Shortcodes (tab) section.

    Hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.