Template::__construct()
Source
File: classes/Template.php
public function __construct(){ add_action( 'pre_get_posts', [$this, 'course_query_archive'], 99 ); /** * Should Load Template Override * Integration for specially for oxygen builder * If we found false of below filter, then we will not use this file */ $template_override = apply_filters('dozent_should_template_override', true); if ( ! $template_override){ return; } add_filter( 'template_include', [$this, 'course_archive_template'], 99 ); add_filter( 'template_include', [$this, 'single_course_template'], 99 ); add_filter( 'template_include', [$this, 'single_curriculum_template'], 99 ); add_filter( 'template_include', [$this, 'stream_video'], 99 ); add_filter( 'template_include', [$this, 'public_profile'], 99 ); add_filter( 'pre_get_document_title', [$this, 'public_profile_title']); add_filter( 'the_content', [$this, 'page_to_template']); add_filter( 'template_include', [$this, 'dozent_dashboard'], 99 ); add_filter( 'dozent_load_dashboard_page', [$this, 'dozent_load_dashboard_page'], 99, 2 ); add_action( 'template_redirect', [ $this, 'logged_in_user_in_signup_page' ] ); }