Download the PHP package waughj/wp-scripts without Composer
On this page you can find all versions of the php package waughj/wp-scripts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download waughj/wp-scripts
More information about waughj/wp-scripts
Files in waughj/wp-scripts
Download waughj/wp-scripts
More information about waughj/wp-scripts
Files in waughj/wp-scripts
Vendor waughj
Package wp-scripts
Short Description WordPress component for easily adding CSS stylesheets & JavaScript files.
License AGPL-3.0-or-later
Package wp-scripts
Short Description WordPress component for easily adding CSS stylesheets & JavaScript files.
License AGPL-3.0-or-later
Please rate this library. Is it a good library?
Informations about the package wp-scripts
WP Scripts
WordPress component for easily adding CSS stylesheets & JavaScript files.
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
2.1.0
- Remove emoji JS on dequeueWPDefaults method call
- Add alternate ( more accurate ) name for dequeueWPDefaults method: “deregisterWPDefaults”
2.0.0
- Separate page meta box registrar from initialization so it can go last
- Remove WordPress admin pages
1.3.0
- 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
- Add ability to add meta box to other post types
1.1.0
- Allow multiple scripts through 1 register call using commas
1.0.0
- Initial stable version.
All versions of wp-scripts with dependencies
PHP Build Version
Package Version
The package waughj/wp-scripts contains the following files
Loading the files please wait ....