1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-12-23 12:23:54 +02:00
WordPress-Plugin-Boilerplate/plugin-name/trunk/includes/class-plugin-name.php

53 lines
1.2 KiB
PHP
Raw Normal View History

<?php
/**
2014-05-03 22:28:04 +03:00
* Define a short description for what this class does (no period)
*
2014-05-03 22:07:05 +03:00
* @package Plugin_Name
* @subpackage Plugin_Name/includes
* @author Your Name <email@example.com>
2014-05-03 22:28:04 +03:00
* @license GPL-2.0+
* @link http://example.com
* @copyright 2014 Your Name or Company Name
* @since 1.0.0
*/
/**
2014-05-03 22:28:04 +03:00
* Define a short description for what this class does.
*
2014-05-03 22:28:04 +03:00
* Define a longer description for the purpose of this class.
*
2014-05-03 22:28:04 +03:00
* @package Plugin_Name
* @subpackage Plugin_Name/includes
* @author Your Name <email@example.com>
*/
class Plugin_Name {
protected $plugin_slug = 'plugin-name-slug';
protected $version = '1.0.0';
protected $loader;
public function __construct( Plugin_Name_Loader $loader = NULL ) {
$this->loader = $loader;
}
public function run() {
$this->loader->run();
}
/**
* This class is used to define common functionality that exists between
2014-05-03 22:28:04 +03:00
* both the dashboard and the public-facing side of the website. Think
* of this as a shared class.
*
* If any hooks are defined in this class, then they should be defined
* in their respective Loader classes (that is, Plugin_Name_Admin_Loader
2014-05-03 22:28:04 +03:00
* or Plugin_Name_Public_Loader).
*
2014-05-03 22:28:04 +03:00
* An instance of this class should then be passed to the loader.
*/
}