AnsPress_Category::ap_current_page( string $query_var )

Description #

Modify current page to show category archive.

Parameters #

  • $query_var
    string (Required) Current page.

Changelog #

VersionDescription
4.1.0Introduced.

Source #

File: addons/free/category.php

	public static function ap_current_page( $query_var ) {
		if ( 'categories' === $query_var && 'category' === get_query_var( 'ap_page' ) ) {
			return 'category';
		}

		return $query_var;
	}

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