wpsh / wp-plugin
There is no license information available for the latest version (0.0.1) of this package.
A WordPress plugin abstraction library
0.0.1
2019-01-25 11:03 UTC
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-25 19:56:10 UTC
README
Work in progress!
Install
Add this library as a Composer dependency to your plugin.
composer require wpsh/wp-plugin
Usage
<?php use WPSH\Plugin; if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) { require( __DIR__ . '/vendor/autoload.php' ); } $plugin = new Plugin\Plugin( __FILE__ ); // Now use it as a dependency for your own plugin. $awesomePlugin = new AwesomePlugin( $plugin ); $awesomePlugin->init_hooks();
API
TODO: Build documentation from the docblock comments.
Credits
Created by Kaspars Dambis.