PHPackages                             innocode-digital/wp-assets-version - 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-assets-version

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

innocode-digital/wp-assets-version
==================================

Helps with versioning of CSS and JS files.

1.1.0(3y ago)17.0k12GPL-2.0+PHPPHP &gt;=7.3

Since Aug 13Pushed 3y ago10 watchersCompare

[ Source](https://github.com/innocode-digital/wp-assets-version)[ Packagist](https://packagist.org/packages/innocode-digital/wp-assets-version)[ RSS](/packages/innocode-digital-wp-assets-version/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (2)Versions (3)Used By (2)

Assets Version
==============

[](#assets-version)

### Description

[](#description)

Helps with versioning of CSS and JS files. Plugin [adds](https://github.com/innocode-digital/wp-flush-cache#documentation)flush buttons to admin area for version upgrading. **Requires** [Flush Cache Buttons](https://github.com/innocode-digital/wp-flush-cache) plugin.

### Install

[](#install)

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

    ```
    composer require innocode-digital/wp-assets-version

    ```

    By default, it will be installed as [Must Use Plugin](https://codex.wordpress.org/Must_Use_Plugins). 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-assets-version.git
    cd wp-assets-version/
    composer install

    ```

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

### Usage

[](#usage)

There are known functions [wp\_enqueue\_script](https://developer.wordpress.org/reference/functions/wp_enqueue_script/) and [wp\_enqueue\_style](https://developer.wordpress.org/reference/functions/wp_enqueue_style/) in WordPress core to register and enqueue scripts and styles. In both of them [4th parameter](https://developer.wordpress.org/reference/functions/wp_enqueue_script/#parameters)is for version number and in ideal case it should be version of build or theme or `null` with some version hash in filename ... but sometimes it's hard to implement or there are could be particular issues in caching, and it's where this plugin becomes as a good **hotfix**. There are few ways to add version with this plugin:

- Retrieve version through function `innocode_assets_version()` and set as 4th parameter in enqueue functions, e.g.:

    ```
    $ver = function_exists( 'innocode_assets_version' ) ? innocode_assets_version() : false;

    wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer );

    ```
- Force using of version where `null` set as 4th parameter:

    ```
    add_filter( 'innocode_assets_version_allow_default', '__return_true' );

    ```
- Force using of version but with own logic per dependency (requires previous hook to be set), e.g.:

    ```
    /**
     * @param bool $allow
     * @param string $type - One of [ 'script', 'style' ].
     * @param _WP_Dependency $dependency
     */
    add_filter( 'innocode_assets_version_allow_dependency', function ( bool $allow, string $type, _WP_Dependency $dependency ) {
        // @TODO: implement logic

        return $allow;
    }, 20, 3 );

    ```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity47

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 ~418 days

Total

2

Last Release

1367d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.1

1.1.0PHP &gt;=7.3

### 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 (10 commits)")

### Embed Badge

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

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

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3376.6k](/packages/starcitizentools-citizen-skin)[civicrm/civicrm-drupal-8

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

19251.4k3](/packages/civicrm-civicrm-drupal-8)[altis/core

Core module for Altis

19228.0k3](/packages/altis-core)[pfefferle/wordpress-activitypub

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

5721.7k4](/packages/pfefferle-wordpress-activitypub)

PHPackages © 2026

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