Embed Redirects WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
A WordPress plugin to enable links in embeds to third party sites via a redirect.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/peterwilsoncc/embed-redirects/archive/refs/heads/main.zipOn Packagist as peterwilsoncc/embed-redirects:
composer require peterwilsoncc/embed-redirectsA WordPress plugin to enable links in embeds to third party sites via a redirect.
By default, WordPress prevents embedded content from containing links to sites other than the source of the redirect.
While this is fine for the standard WordPress embeds. For sites that customize the embed template to display the full content of the post it will prevent links to third party sites working when the post is embedded on another site.
This allows the use of links to third party sites in the content by creating a redirect endpoint in WordPress for redirecting to other sites. To avoid an open redirect, it validates the URL to ensure the redirect is permitted by the site doing the redirect.
This plugin needs to run on the site with the modified embed template. For sites using the embed the plugin does not have any effect.
Frequently Asked Questions
Where is this plugin's menu page?
There isn't one, the plugin doesn't have any options to configure so works upon activation.
The redirects aren't working
The plugin attempts to flush the WordPress rewrite rules during activation. If this failed for some reason then visit the WordPress Dashboard > Settings > Permalinks page and see if that helps.
Changelog
1.0
Initial release.
Releases
2 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.