承接 voceconnect/wp-plugin-loader 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

voceconnect/wp-plugin-loader

最新稳定版本:0.1.0

Composer 安装命令:

composer require voceconnect/wp-plugin-loader

包简介

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

README 文档

README

WP Plugin Loader provides an interface for loading plugin dependencies.

Installation

Add WP Plugin loader as a dependency with Composer:

composer require voceconnect/wp-plugin-loader

Then ensure that your composer autoload file is properly included:

require_once 'vendor/autoload.php';

Initialize the PluginLoader:

$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:

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

Alternatively, the action name can be retrieved from the class constant LOAD_ACTION:

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.

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2015-07-10