public function __construct() { parent::__construct(); $this->detect_if_sitemap_page(); add_action('init', array($this, 'init_shortcodes')); }