Dizze plugin is net hifke mei de lêste 3 grutte releases fan WordPress . It kin net langer wurde ûnderhâlden of stipe en kin kompatibiliteitsproblemen hawwe as it wurdt brûkt mei resinte ferzjes fan WordPress.

WAJ Scripts

Beskriuwing

WordPress plugin for easily adding CSS stylesheets & JavaScript files.

Examples

use WaughJ\WPScripts\WPStylesheets;
WPStylesheets::register( 'main' );

use WaughJ\WPScripts\WPScripts;
WPScripts::register( 'blog', true );

Ynstallaasje

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress

The main stylesheet & JavaScript external script can be set in Appearances -> Theme -> Directories. There is also a checkbox for turning off jQuery, which WordPress automatically loads.

Individual pages can have specific stylesheet or JavaScript external scripts added in input boxes on those pages’ individual editor pages.

Beyond this, stylesheets & javascript files can be loaded manually in PHP by calling the “register” static method on the WPStylesheets or WPScripts classes. The WPScripts’ register method includes an optional boolean 2nd argument to determine whether the script should be loaded in the footer or the header. Default is loading in the footer. “dequeueWPDefaults” static method for the WPScripts class can be used to turn off jQuery in PHP.

Resinsjes

D'r binne gjin resinsjes foar dizze plugin.

Meiwurkers & amp; Untwikkelders

"WAJ Scripts" is iepen boarne software. De folgjende minsken hawwe bydroegen oan dizze plugin.

Meiwurkers

Oersette "WAJ Scripts" yn jo taal.

Ynteressearre yn ûntwikkeling?

Blêdzje troch de koade , besjoch de SVN-repository , of abonnearje op it ûntwikkelingslogboek troch RSS .

Feroaringslog

1.1.1

  • Test in WordPress 5.2

1.1.0

  • Add Ability to make mo’ complex registration functions for sheet managers & ability to easily register absolute URLs.

1.0.2

  • Test in WordPress 5.1

1.0.1

  • Fix bug causing meta boxes to try loading empty filename for empty meta boxes.

1.0.0

  • Initial stable version.