AnsPress_Tag::ap_current_page_is( string $page )

Description #

Override ap_current_page_is function to check if tags or tag page.

Parameters #

  • $page
    string (Required) Current page slug.

Source #

File: addons/free/tag.php

	public static function ap_current_page_is( $page ) {
		if ( is_question_tags() ) {
			$page = 'tags';
		} elseif ( is_question_tag() ) {
			$page = 'tag';
		}

		return $page;
	}

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