2017 © Pedro Peláez
 

library skip-bundled

Skip scripts bundled in your WordPress theme.

image

trendwerk/skip-bundled

Skip scripts bundled in your WordPress theme.

  • Tuesday, December 6, 2016
  • by haroldangenent
  • Repository
  • 1 Watchers
  • 0 Stars
  • 30 Installations
  • Shell
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 50 % Grown

The README.md

Skip bundled

Skip parsing of scripts bundled in your WordPress theme. This is useful when you bundle scripts (like jQuery) that are also used and added to the queue through wp_enqueue_script by WordPress plugins in one file., (*1)

Build Status, (*2)

Install

composer require trendwerk/skip-bundled

Usage

$scripts = new \Trendwerk\SkipBundled\Scripts();
$scripts->init();
$scripts->add($handle);

Where $handle is the handle on which the script is registered in WordPress, by using wp_register_script., (*3)

Example

An example for jQuery:, (*4)

$scripts = new \Trendwerk\SkipBundled\Scripts();
$scripts->init();
$scripts->add('jquery-core');

Note: jQuery is registered as jquery-core., (*5)

The Versions

06/12 2016

dev-master

9999999-dev

Skip scripts bundled in your WordPress theme.

  Sources   Download

GPL-3.0+

The Development Requires

06/12 2016

0.1.0

0.1.0.0

Skip scripts bundled in your WordPress theme.

  Sources   Download

GPL-3.0+

The Development Requires