2017 © Pedro Peláez
 

library wp-plugin-loader

A simplified interface to insure that a WordPress plugin has been loaded

image

voceconnect/wp-plugin-loader

A simplified interface to insure that a WordPress plugin has been loaded

  • Friday, July 10, 2015
  • by prettyboymp
  • Repository
  • 1 Watchers
  • 1 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

WP Plugin Loader

WP Plugin Loader provides an interface for loading plugin dependencies., (*1)

Installation

Add WP Plugin loader as a dependency with Composer:, (*2)

composer require voceconnect/wp-plugin-loader, (*3)

Then ensure that your composer autoload file is properly included:, (*4)

require_once 'vendor/autoload.php';

Initialize the PluginLoader:, (*5)

$pluginLoader = new Voce\PluginLoader\PluginLoader();
$pluginLoader->registerHooks();

Loading Plugins

To be sure that a plugin is loaded, pass the plugin details to the wp_load_plugin action. For example, the below will load the 'Hello Dolly' plugin:, (*6)

do_action('wp_load_plugin', 'hello-dolly', 'hello.php');

Alternatively, the action name can be retrieved from the class constant LOAD_ACTION:, (*7)

do_action(Voce\PluginLoader\PluginLoader::LOAD_ACTION, 'hello-dolly', 'hello.php');

...of course this is much shorter if you're already using the use statement., (*8)

The Versions

10/07 2015

dev-master

9999999-dev

A simplified interface to insure that a WordPress plugin has been loaded

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.4.0

 

by Michael Pretty

10/07 2015

0.1.0

0.1.0.0

A simplified interface to insure that a WordPress plugin has been loaded

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.4.0

 

by Michael Pretty