public function activate() { if ($this->project->isShowAtWidget()) { $this->action('widgets_init', 'applyWidget'); } if (!is_admin()) { if ($this->project->isShowAtSidebar()) { $this->action('wp_footer', 'applySidebar'); } if ($this->project->isShowAtContent()) { $this->filter('the_content', 'applyContent'); } } }