mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 20:03:53 +02:00
adding TODO docblocks
This commit is contained in:
parent
bb3c56b0c2
commit
f89752180f
1 changed files with 18 additions and 0 deletions
|
@ -23,10 +23,19 @@
|
||||||
*/
|
*/
|
||||||
class Plugin_Name_Loader {
|
class Plugin_Name_Loader {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO
|
||||||
|
*/
|
||||||
protected $actions;
|
protected $actions;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO
|
||||||
|
*/
|
||||||
protected $filters;
|
protected $filters;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO
|
||||||
|
*/
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
|
||||||
$this->actions = array();
|
$this->actions = array();
|
||||||
|
@ -34,14 +43,23 @@ class Plugin_Name_Loader {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO
|
||||||
|
*/
|
||||||
public function add_action( $hook, $component, $callback ) {
|
public function add_action( $hook, $component, $callback ) {
|
||||||
$this->actions = $this->add( $this->actions, $hook, $component, $callback );
|
$this->actions = $this->add( $this->actions, $hook, $component, $callback );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO
|
||||||
|
*/
|
||||||
public function add_filter( $hook, $component, $callback ) {
|
public function add_filter( $hook, $component, $callback ) {
|
||||||
$this->filters = $this->add( $this->filters, $hook, $component, $callback );
|
$this->filters = $this->add( $this->filters, $hook, $component, $callback );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO
|
||||||
|
*/
|
||||||
private function add( $hooks, $hook, $component, $callback ) {
|
private function add( $hooks, $hook, $component, $callback ) {
|
||||||
|
|
||||||
$hooks[] = array(
|
$hooks[] = array(
|
||||||
|
|
Loading…
Reference in a new issue