• Resolved Sascha_Foerster

    (@sascha_foerster)


    I am really happy with the plugin. I would like to inform users more about two facts. First: when they click, they need to know, that data will be transferred to Non-EU-countries. Second: I want to give more details about that by linking to the data protection page.
    I will now write a little script or change the translation to achieve this, but it would be great, if this two options to change output could be built in and save from updating.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Simon Kraft

    (@krafit)

    Hi Sascha 👋

    Good call. We’ve actually got a feature on our roadmap that should pretty much cover your use case – at some point in the future.

    In the meantime, and before you have to mess with the translation: last year we added a filter, you can use to change the output and add arbitrary content/links/markup to the Embed Privacy placeholder. You’ll find the code on GitHub.

    And if you can: we’d love to take a look at the result afterwards. We’re always happy to see our plugins out in the wild.

    Grüße an den Rhein,
    Simon

    Thread Starter Sascha_Foerster

    (@sascha_foerster)

    Hi Simon,

    ok, I found the filter, but I am not enough of a developer to create the code to filter myself (mostly I change existing stuff). For people who are searching the filter:
    https://github.com/epiphyt/embed-privacy/commit/9486d49b634bd876d23e09dbaf5f468d6f122115

    And we use your plugin on our blogs, here is an example:
    https://bonn.digital/stcassius-digital-dabei-2-0-bei-den-workshops-im-offenen-jugendtreff/

    If someone has the code to change to filter, please add it here. Now I will wait for this feature to be integrated. 🙂

    Plugin Author KittMedia

    (@kittmedia)

    Hi Sascha,

    it should be working with a code like this:

    function my_custom_embed_privacy_content( $content, $embed_provider ) {
    	// return default content for non-desired provider
    	if ( $embed_provider !== 'my-desired-provider' ) {
    		return $content;
    	}
    	
    	return 'This is my custom content <em>with HTML support</em>.';
    }
    
    add_filter( 'embed_privacy_content', 'my_custom_embed_privacy_content', 10, 2 );

    Just replace the my-desired-provider and your return value as desired.

    Thread Starter Sascha_Foerster

    (@sascha_foerster)

    Thank you all a lot for your replies. I will try it out a later time (but maybe you are faster with development) 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Link to data protection information page’ is closed to new replies.