1 <?php
2
3 /*
4 * WORDSMITH FILTER CLASS
5 *
6 * this class is the base object for a filter to be added into wordpress.
7 *
8 */
9
10 namespace nk2580\wordsmith\Filters;
11
12 class Filter {
13
14 protected $tag;
15 protected $callback;
16 protected $priority;
17 protected $args;
18
19 public function __construct() {
20 add_filter($this->tag, array($this, $this->callback), $this->priority, $this->args);
21 }
22
23 }
24