AnsPress_Category::taxonomy_template( string $template )

Description #

Override taxonomy template.

Parameters #

  • $template
    string (Required) Template file.

Changelog #

VersionDescription
4.1.0Introduced.

Source #

File: addons/free/category.php

	public static function taxonomy_template( $template ) {
		if ( is_tax( 'question_category' ) ) {
			return locate_template( 'page.php' );
		}

		return $template;
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment