public function enable() { if (has_filter($this->hook, $this->filter)) { return false; } add_filter($this->hook, $this->filter); return true; }