1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-05-13 16:52:10 +03:00

adding TODO docblocks

This commit is contained in:
Tom McFarlin 2014-05-08 23:34:38 -04:00
parent bb3c56b0c2
commit f89752180f

View file

@ -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(