Class library for wordpress development - works as a superclass to post and taxonomy classes, providing data access (as properties) plus some additional functions such as automatic creation of metadata boxes.
Install tm_wp_plugin as wordpress plugin.
Within your plugin create class objects extendign TMBasePost or TMBaseTax superclass.
if (! class_exists('TMSessionPlan')):
class TMSessionPlan extends TMBasePost {
protected static $post_type = 'tm_sessionplan'; // Required
protected static $labels = Array(
'singular_name' => 'Session Plan' // Required
);
function __construct($sessionid = 0) {
parent::__construct($sessionid);
}
}
TMSessionPlan::init();
endif;
Load your plugin into wordpress as normal
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Martin Croker - Initial work - martincroker
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- Hat tip to anyone whose code was used
- Inspiration
- etc