Embed Privacy prevents the loading of embedded external content and allows your site visitors to opt-in.
Content embedded from external sites such as YouTube or Twitter is loaded immediately when visitors access your site. Embed Privacy addresses this issue and prevents the loading of these contents until the visitor decides to allow loading of external content.
But Embed Privacy not only protects your visitor’s privacy but also makes your site load faster.
All embeds will be replaced by placeholders, ready for you to apply style as you wish. With only a couple of lines of CSS.
By clicking on the placeholder the respective content will then be loaded.
Note: This plugins requires the PHP extension “Document Object Model” (php-dom).
/wp-content/plugins/embed-privacy
directory, or install the plugin through the WordPress plugins screen directly.[embed_privacy_opt_out]
into your privacy policy.Yes. As long as you don’t opt in to load external content, you/your visitors can’t be tracked by these services.
The embedding process itself will be privacy-friendly with Embed Privacy. That means, that no third-party embed provider can track users without their explicit consent by clicking on the overlay to allow the embed to be loaded. However, to make sure everything is fine you need to expand your privacy policy for each embed provider you’re using or you want to use because you need to specify, where data will be sent to and what happens to them.
Sure thing! We enjoy playing with the new WordPress editor and developed Embed Privacy with Gutenberg in mind, the plugin will work no matter the editor you use.
We currently support all oEmbed providers known to WordPress core by default. Want to know about them? Here you go:
We also support Google Maps via iframe and the plugins Maps Marker, Maps Marker Pro and Shortcodes Ultimate.
Since version 1.2.0, you can also add custom embed providers by going to Settings > Embed Privacy > Manage embeds. Here you can also modify any existing embed provider, change its logo, add a background image, change the text displaying on the embed or disable the embed provider entirely.
Yes! Since version 1.5.0, Embed Privacy supports downloading and displaying thumbnails in posts for SlideShare, Vimeo and YouTube as background of Embed Privacy’s overlay.
Since version 1.1.0 you can now use our mechanism for content we don’t support in our plugin. You can do it the following way:
/** * Replace specific content with the Embed Privacy overlay of type 'google-maps'. * * @param string $content The content to replace * @return string The updated content */ function prefix_replace_content_with_overlay( $content ) { // check for Embed Privacy if ( ! class_exists( 'epiphyt\Embed_Privacy\Embed_Privacy' ) ) { return $content; } // get Embed Privacy instance $embed_privacy = epiphyt\Embed_Privacy\Embed_Privacy::get_instance(); // check if provider is always active; if so, just return the content if ( ! $embed_privacy->is_always_active_provider( 'google-maps' ) ) { // replace the content with the overlay $content = $embed_privacy->get_output_template( 'Google Maps', 'google-maps', $content ); // enqueue assets $embed_privacy->print_assets(); } return $content; }
Yes! You can use the shortcode [embed_privacy_opt_out]
to add a list of embed providers anywhere you want (recommendation: add it to your privacy policy) to allow your users to opt-out.
The shortcode [embed_privacy_opt_out]
can be used to let users opt-out of embed providers that have been set to be always active by the user. It can have the following attributes:
headline – Add a custom headline (default: Embed providers) [embed_privacy_opt_out headline="My custom headline"] subline – Add a custom subline (default: Enable or disable embed providers globally. By enabling a provider, its embedded content will be displayed directly on every page without asking you anymore.) [embed_privacy_opt_out subline="My custom subline"] show_all – Whether to show all available embed providers or just the ones the user opted in (default: false) [embed_privacy_opt_out show_all="1"]
You can also combine all of these attributes:
[embed_privacy_opt_out headline="My custom headline" subline="My custom subline" show_all="1"]
If you’re using a caching plugin, make sure you enable the “JavaScript detection for active providers” in Settings > Embed Privacy > JavaScript detection. Then, the plugin is fully compatible with your caching plugin.
Check out our documentation: https://epiph.yt/en/embed-privacy/documentation/
We are Epiphyt, your friendly neighborhood WordPress plugin shop from southern Germany.
defer
attributesembed_privacy_markup
for filtering the whole markup of an embed overlayembed
, iframe
and object
<object>
elements are now replaced correctlyis-disabled
/is-enabled
)[embed_privacy_opt_out]
to allow users to opt-out/in