Skip to content

mcroker/tm_wp_plugin

Repository files navigation

TM_WP_Plugin

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.

Getting Started

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

Usage

Built With

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

About

Plugin Class Framework for Wordpress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages