PHPackages                             interactive-one/protected-embeds - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. interactive-one/protected-embeds

ActiveWordpress-plugin

interactive-one/protected-embeds
================================

0134.7k—2.3%PHP

Since Oct 21Pushed 2y agoCompare

[ Source](https://github.com/interactive-one/protected-embeds)[ Packagist](https://packagist.org/packages/interactive-one/protected-embeds)[ RSS](/packages/interactive-one-protected-embeds/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

  Protected Embeds
================

[](#protected-embeds)

 A drop-in replacement for WordPress.com protected embeds       A **[Human Made](https://hmn.md/)** project. Maintained by @roborourke.   [![](https://camo.githubusercontent.com/21ddd8db8af0243ccabd437a33ded6e2da1e9777d1b4d75f30ab9ac80803c90a/68747470733a2f2f686d6e2e6d642f636f6e74656e742f7468656d65732f686d6e6d642f6173736574732f696d616765732f686d2d6c6f676f2e737667)](https://camo.githubusercontent.com/21ddd8db8af0243ccabd437a33ded6e2da1e9777d1b4d75f30ab9ac80803c90a/68747470733a2f2f686d6e2e6d642f636f6e74656e742f7468656d65732f686d6e6d642f6173736574732f696d616765732f686d2d6c6f676f2e737667)  ### Installation

[](#installation)

1. Install the plugin as normal.
2. Define `PROTECTED_EMBEDS_DOMAIN` in your `wp-config.php` as another domain that points to the same WordPress site. For example `myembeds.com`.

```
define( 'PROTECTED_EMBEDS_DOMAIN', 'myembeds.com' );
```

### Dealing with early redirects

[](#dealing-with-early-redirects)

In WordPress multisite with a domain mapping solution such as [Mercator](https://github.com/humanmade/Mercator) running you may find requests to your embed domain get redirected too early and adding the domain as a site on the network will negate the benefits of a separate domain if you have SSO enabled. You can work around it by adding the following to your `sunrise.php` file:

```
// Create a dummy site object pointing the protected embeds domain
// to the primary site
add_filter( 'pre_get_site_by_path', function( $site, $domain, $path ) {
	if ( PROTECTED_EMBEDS_DOMAIN === $domain ) {
		$site          = new stdClass;
		$site->id      = 1;
		$site->blog_id = 1;
		$site->site_id = 1;
		$site->domain  = $domain;
		$site->path    = $path;
		$site->public  = 1;
	}
	return $site;
}, 10, 3 );
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/92bfcd3a8c3a21a033a6484d32c25a40b113ec6891f674336081513d5c98ef76?d=identicon)[kasparsd](/maintainers/kasparsd)

![](https://www.gravatar.com/avatar/b573f518898fd7c6e8562471d7dcee30fd2ea1a5f6c32dc8c44135cc4fc1bc0a?d=identicon)[markusrobinson](/maintainers/markusrobinson)

![](https://www.gravatar.com/avatar/915a2e4c7e9e1c5be237bdb7684d6af8f1a6e297a18f6b3d363630004b42f351?d=identicon)[federicojacobi](/maintainers/federicojacobi)

---

Top Contributors

[![joehoyle](https://avatars.githubusercontent.com/u/161683?v=4)](https://github.com/joehoyle "joehoyle (17 commits)")[![goldenapples](https://avatars.githubusercontent.com/u/665992?v=4)](https://github.com/goldenapples "goldenapples (6 commits)")[![roborourke](https://avatars.githubusercontent.com/u/23417?v=4)](https://github.com/roborourke "roborourke (4 commits)")[![carlosenamdev](https://avatars.githubusercontent.com/u/51013565?v=4)](https://github.com/carlosenamdev "carlosenamdev (2 commits)")[![newball](https://avatars.githubusercontent.com/u/484994?v=4)](https://github.com/newball "newball (2 commits)")[![federicojacobi](https://avatars.githubusercontent.com/u/3521974?v=4)](https://github.com/federicojacobi "federicojacobi (1 commits)")[![rmccue](https://avatars.githubusercontent.com/u/21655?v=4)](https://github.com/rmccue "rmccue (1 commits)")[![kasparsd](https://avatars.githubusercontent.com/u/169055?v=4)](https://github.com/kasparsd "kasparsd (1 commits)")

### Embed Badge

![Health badge](/badges/interactive-one-protected-embeds/health.svg)

```
[![Health](https://phpackages.com/badges/interactive-one-protected-embeds/health.svg)](https://phpackages.com/packages/interactive-one-protected-embeds)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
