public function boot() {

		// Filter the front page template.
		add_filter( 'frontpage_template_hierarchy',  [ $this, 'frontPage' ], 5 );

		// Filter the single, page, and attachment templates.
		add_filter( 'single_template_hierarchy',     [ $this, 'single' ], 5 );
		add_filter( 'page_template_hierarchy',       [ $this, 'single' ], 5 );
		add_filter( 'attachment_template_hierarchy', [ $this, 'single' ], 5 );

		// Filter taxonomy templates.
		add_filter( 'taxonomy_template_hierarchy', [ $this, 'taxonomy' ], 5 );
		add_filter( 'category_template_hierarchy', [ $this, 'taxonomy' ], 5 );
		add_filter( 'tag_template_hierarchy',      [ $this, 'taxonomy' ], 5 );

		// Filter the author template.
		add_filter( 'author_template_hierarchy', [ $this, 'author' ], 5 );

		// Filter the date template.
		add_filter( 'date_template_hierarchy', [ $this, 'date' ], 5 );

		// System for capturing the template hierarchy.
		foreach ( $this->types as $type ) {

			// Capture the template hierarchy for each type.
			add_filter( "{$type}_template_hierarchy", [ $this, 'templateHierarchy' ], PHP_INT_MAX );

			// Capture the located template.
			add_filter( "{$type}_template", [ $this, 'template' ], PHP_INT_MAX );
		}

		// Re-add the located template.
		add_filter( 'template_include', [ $this, 'templateInclude' ], PHP_INT_MAX );
	}
public function boot() {

		// Filter the front page template.
		add_filter( 'frontpage_template_hierarchy',  [ $this, 'frontPage' ], 5 );

		// Filter the single, page, and attachment templates.
		add_filter( 'single_template_hierarchy',     [ $this, 'single' ], 5 );
		add_filter( 'page_template_hierarchy',       [ $this, 'single' ], 5 );
		add_filter( 'attachment_template_hierarchy', [ $this, 'single' ], 5 );

		// Filter taxonomy templates.
		add_filter( 'taxonomy_template_hierarchy', [ $this, 'taxonomy' ], 5 );
		add_filter( 'category_template_hierarchy', [ $this, 'taxonomy' ], 5 );
		add_filter( 'tag_template_hierarchy',      [ $this, 'taxonomy' ], 5 );

		// Filter the author template.
		add_filter( 'author_template_hierarchy', [ $this, 'author' ], 5 );

		// Filter the date template.
		add_filter( 'date_template_hierarchy', [ $this, 'date' ], 5 );

		// System for capturing the template hierarchy.
		foreach ( $this->types as $type ) {

			// Capture the template hierarchy for each type.
			add_filter( "{$type}_template_hierarchy", [ $this, 'templateHierarchy' ], PHP_INT_MAX );

			// Capture the located template.
			add_filter( "{$type}_template", [ $this, 'template' ], PHP_INT_MAX );
		}

		// Re-add the located template.
		add_filter( 'template_include', [ $this, 'templateInclude' ], PHP_INT_MAX );
	}
public function boot ( ) { // Filter the front page template. add_filter ( 'frontpage_template_hierarchy' , [ $ this , 'frontPage' ] , 5 ) ; // Filter the single, page, and attachment templates. add_filter ( 'single_template_hierarchy' , [ $ this , 'single' ] , 5 ) ; add_filter ( 'page_template_hierarchy' , [ $ this , 'single' ] , 5 ) ; add_filter ( 'attachment_template_hierarchy' , [ $ this , 'single' ] , 5 ) ; // Filter taxonomy templates. add_filter ( 'taxonomy_template_hierarchy' , [ $ this , 'taxonomy' ] , 5 ) ; add_filter ( 'category_template_hierarchy' , [ $ this , 'taxonomy' ] , 5 ) ; add_filter ( 'tag_template_hierarchy' , [ $ this , 'taxonomy' ] , 5 ) ; // Filter the author template. add_filter ( 'author_template_hierarchy' , [ $ this , 'author' ] , 5 ) ; // Filter the date template. add_filter ( 'date_template_hierarchy' , [ $ this , 'date' ] , 5 ) ; // System for capturing the template hierarchy. foreach ( $ this -> types as $ type ) { // Capture the template hierarchy for each type. add_filter ( "{$type}_template_hierarchy" , [ $ this , 'templateHierarchy' ] , PHP_INT_MAX ) ; // Capture the located template. add_filter ( "{$type}_template" , [ $ this , 'template' ] , PHP_INT_MAX ) ; } // Re-add the located template. add_filter ( 'template_include' , [ $ this , 'templateInclude' ] , PHP_INT_MAX ) ; }
Sets up template hierarchy filters.

@since  5.0.0
@access public
@return void
Sets up template hierarchy filters .