Skip to content

Repository files navigation

Helper Library for WordPress Plugins

Build StatusCoverage Status

Work in progress!

Install

Add this library as a Composer dependency to your plugin.

composer require wpsh/wp-plugin

Usage

<?phpuseWPSH\Plugin;
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require( __DIR__ . '/vendor/autoload.php' );
}
$plugin = newPlugin\Plugin( __FILE__ );
// Now use it as a dependency for your own plugin.$awesomePlugin = newAwesomePlugin( $plugin );
$awesomePlugin->init_hooks();

API

TODO: Build documentation from the docblock comments.

Credits

Created by Kaspars Dambis.

About

A WordPress plugin abstraction library.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages