PHPackages                             innocode-digital/wp-cdn - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. innocode-digital/wp-cdn

ActiveWordpress-muplugin[Utility &amp; Helpers](/categories/utility)

innocode-digital/wp-cdn
=======================

Change all static files URLs to CDN domain.

3.5.0(5y ago)014.5k12GPL-2.0+PHPPHP &gt;=7.1

Since Oct 23Pushed 5y agoCompare

[ Source](https://github.com/innocode-digital/wp-cdn)[ Packagist](https://packagist.org/packages/innocode-digital/wp-cdn)[ RSS](/packages/innocode-digital-wp-cdn/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (9)Used By (2)

CDN
===

[](#cdn)

### Description

[](#description)

Change all static files URLs to CDN domain.

### Install

[](#install)

- Preferable way is to use [Composer](https://getcomposer.org/):

    ```
    composer require innocode-digital/wp-cdn

    ```

    By default it will be installed as [Must Use Plugin](https://codex.wordpress.org/Must_Use_Plugins). But it's possible to control with `extra.installer-paths` in `composer.json`.
- Alternate way is to clone this repo to `wp-content/mu-plugins/` or `wp-content/plugins/`:

    ```
    cd wp-content/plugins/
    git clone git@github.com:innocode-digital/wp-cdn.git
    cd wp-cdn/
    composer install

    ```

If plugin was installed as regular plugin then activate **CDN** from Plugins page or [WP-CLI](https://make.wordpress.org/cli/handbook/): `wp plugin activate wp-cdn`.

### Usage

[](#usage)

Add required constant (usually to `wp-config.php`):

```
define( 'CDN_DOMAIN', '' ); // E.g. 'xxxxxx.cloudfront.net'

```

### Documentation

[](#documentation)

It's possible to disable URL replace at all or for certain cases:

```
add_filter( 'innocode_cdn_should_replace_url', function ( $should_replace_url, $uri ) {
    return $should_replace_url;
}, 10, 2 );

```

---

It's possible to control a list of extensions:

```
add_filter( 'innocode_cdn_extensions', function ( array $extensions ) {
    return $extensions;
} );

```

---

It's possible to control a list of hosts:

```
add_filter( 'innocode_cdn_hosts', function ( array $hosts ) {
    return $hosts;
} );

```

---

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~70 days

Recently: every ~113 days

Total

8

Last Release

1908d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b52f801a1cdb5f6622a9e49f4359717b1808ca23e948a243eae225f55e2c7eb?d=identicon)[smfb-dinamo](/maintainers/smfb-dinamo)

---

Top Contributors

[![kuliebiakin](https://avatars.githubusercontent.com/u/6066592?v=4)](https://github.com/kuliebiakin "kuliebiakin (14 commits)")

### Embed Badge

![Health badge](/badges/innocode-digital-wp-cdn/health.svg)

```
[![Health](https://phpackages.com/badges/innocode-digital-wp-cdn/health.svg)](https://phpackages.com/packages/innocode-digital-wp-cdn)
```

###  Alternatives

[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/builder-plugin

Builder plugin for October CMS

17147.2k1](/packages/rainlab-builder-plugin)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5671.4k1](/packages/pfefferle-wordpress-activitypub)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

18238.1k2](/packages/civicrm-civicrm-drupal-8)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[humanmade/lottie-lite

A lightweight Lottie Animations Extension for WordPress

374.3k](/packages/humanmade-lottie-lite)

PHPackages © 2026

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