helper()->acadlix_get_option('acadlix_certificate_page_id'); return $certificate_page_id && is_page($certificate_page_id); } public function template_loader($template) { if ($this->is_certificate_page()) { // !defined('DONOTCACHEPAGE') && define('DONOTCACHEPAGE', true); // phpcs:ignore $certificate_template = ACADLIX_INCLUDES_PATH . 'Common/View/CertificateView.php'; if ($certificate_template) { return $certificate_template; } } return $template; } public static function instance() { if (is_null(self::$_instance)) { self::$_instance = new self(); } return self::$_instance; } } }