1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-04-28 09:23:15 +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 {
/**
* TODO
*/
protected $actions;
/**
* TODO
*/
protected $filters;
/**
* TODO
*/
public function __construct() {
$this->actions = array();
@ -34,14 +43,23 @@ class Plugin_Name_Loader {
}
/**
* TODO
*/
public function add_action( $hook, $component, $callback ) {
$this->actions = $this->add( $this->actions, $hook, $component, $callback );
}
/**
* TODO
*/
public function add_filter( $hook, $component, $callback ) {
$this->filters = $this->add( $this->filters, $hook, $component, $callback );
}
/**
* TODO
*/
private function add( $hooks, $hook, $component, $callback ) {
$hooks[] = array(