peterwilsoncc/embed-redirects 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

peterwilsoncc/embed-redirects

最新稳定版本:1.0.0

Composer 安装命令:

composer require peterwilsoncc/embed-redirects

包简介

A WordPress plugin to enable links in embeds to third party sites via a redirect.

README 文档

README

A 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.

统计信息

  • 总下载量: 171
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-26