No description, website, or topics provided.
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Base.php
README.md
Static.php
example-dynamic.php
example-static.php
plugin.php

README.md

WordPress Plugin Class

Usage

Dynamic classes (i.e. objects instantiated with new) should use Rotor_WPPlugin. Static classes (i.e. those with static methods) should use Rotor_WPPlugin_Static

See example-dynamic.php and example-static.php for examples.

Prefixed Methods

These classes also include support for automatically hooking methods prefixed with action_ or filter_. Simply call parent::__construct(true) for dynamic classes or self::register_hooks() for a static class.

Please note: to use custom priorities, you must use the PHPDoc tags instead.