Tags::ap_current_page( string $query_var )

Description #

Modify current page to show tag archive.

Parameters #

  • $query_var
    string (Required) Current page.

Changelog #

VersionDescription
4.1.0Introduced.

Source #

File: addons/tags/tags.php

	public function ap_current_page( $query_var ) {
		if ( 'tags' === $query_var && 'tag' === get_query_var( 'ap_page' ) ) {
			return 'tag';
		}

		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