PHPackages                             waughj/wp-scripts - 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. waughj/wp-scripts

ActiveLibrary

waughj/wp-scripts
=================

WordPress component for easily adding CSS stylesheets &amp; JavaScript files.

v2.1.0(6y ago)085AGPL-3.0-or-laterPHPPHP &gt;=7.2

Since May 31Pushed 6y agoCompare

[ Source](https://github.com/waughjai/wp-scripts)[ Packagist](https://packagist.org/packages/waughj/wp-scripts)[ RSS](/packages/waughj-wp-scripts/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (6)Dependencies (3)Versions (7)Used By (0)

WP Scripts
==========

[](#wp-scripts)

WordPress component for easily adding CSS stylesheets &amp; JavaScript files.

Examples
--------

[](#examples)

```
use WaughJ\WPScripts\WPStylesheets;
WPStylesheets::init();
WPStylesheets::deregisterWPDefaults();
WPStylesheets::register( 'main' );
WPStylesheets::registerRaw( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js', true, '3.4.1' );
WPScripts::addRegistrator
(
	function() : array
	{
		return ( true ) ? [ 'page' ] : [ 'nopage' ];
	},
	true
);
WPStylesheets::registerPageMetaBox();

use WaughJ\WPScripts\WPScripts;
WPScripts::init();
WPScripts::deregisterWPDefaults();
WPScripts::register( 'blog', true );
WPStylesheets::registerRaw( 'roboto', 'https://fonts.googleapis.com/css?family=Roboto', '20190507' );
WPStylesheets::addRegistrator
(
	function() : array
	{
		return ( true ) ? [ 'page' ] : [ 'nopage' ];
	}
);
WPScripts::registerPageMetaBox();

```

Changelog
---------

[](#changelog)

### 2.1.0

[](#210)

- Remove emoji JS on dequeueWPDefaults method call
- Add alternate ( more accurate ) name for dequeueWPDefaults method: “deregisterWPDefaults”

### 2.0.0

[](#200)

- Separate page meta box registrar from initialization so it can go last
- Remove WordPress admin pages

### 1.3.0

[](#130)

- Add dequeueWPDefaults method for WPStylesheets to dequeue new block library stylesheets for Gutenberg and add wp-embeds to dequeued scripts form WPScripts’ dequeueWPDefaults method

### 1.2.0

[](#120)

- Add ability to add meta box to other post types

### 1.1.0

[](#110)

- Allow multiple scripts through 1 register call using commas

### 1.0.0

[](#100)

- Initial stable version.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Total

6

Last Release

2373d ago

Major Versions

v1.3.0 → v2.0.02019-10-29

PHP version history (2 changes)v1.0.0PHP &gt;=7.0

v2.0.0PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11161078?v=4)[waughj](/maintainers/waughj)[@waughj](https://github.com/waughj)

---

Tags

pluginwordpressscriptsstylesheets

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/waughj-wp-scripts/health.svg)

```
[![Health](https://phpackages.com/badges/waughj-wp-scripts/health.svg)](https://phpackages.com/packages/waughj-wp-scripts)
```

###  Alternatives

[sybrew/the-seo-framework

An automated, advanced, accessible, unbranded and extremely fast SEO solution for any WordPress website.

47078.8k](/packages/sybrew-the-seo-framework)[afragen/git-updater

A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs.

3.3k1.6k](/packages/afragen-git-updater)[webdevstudios/cmb2-attached-posts

Custom field for CMB2 for creating post relationships.

13565.5k](/packages/webdevstudios-cmb2-attached-posts)[iceicetimmy/acf-post-type-selector

Post type selector for Advanced Custom Fields.

559.0k](/packages/iceicetimmy-acf-post-type-selector)[alleyinteractive/pest-plugin-wordpress

WordPress Pest Integration

263.7k1](/packages/alleyinteractive-pest-plugin-wordpress)

PHPackages © 2026

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