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
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. 🙂
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.
Thank you all a lot for your replies. I will try it out a later time (but maybe you are faster with development) 🙂