perry-rylance/wordpress-plugin
Composer 安装命令:
composer require perry-rylance/wordpress-plugin
包简介
A basic boilerplate WordPress plugin, including activation and de-activation hooks, first run, update detection, admin menu and script loading callbacks.
关键字:
README 文档
README
A basic boilerplate WordPress plugin, including activation and de-activation hooks, first run, update detection, admin menu and script loading callbacks.
Installation
I recommend installing this library via Composer:
composer require perry-rylance/wordpress-plugin
Usage
Extend from PerryRylance\WordPress\Plugin to use the plugin.
You must define the following methods, which are abstract in the base class:
getPluginSluggetPluginDirPath
The following methods can be overridden as and where you need to do so:
onActivate(Please remember to call the base method)onDeactivateonFirstRunonUpdated($prevVersion)onTextDomainonAdminMenuonAdminEnqueueScriptsonEnqueueScripts
It is recommended that your plugin instantiates itself immediately (eg do not wait for plugins_loaded or init) so that activation and de-activation hooks work correctly.
统计信息
- 总下载量: 179
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-08-04