AnsPress_Profile_Hooks::ap_current_page( string $query_var )

Description #

Override current page of AnsPress.

Parameters #

  • $query_var
    string (Required) Current page name.

Changelog #

VersionDescription
4.1.0Introduced.

Source #

File: addons/free/profile.php

	public static function ap_current_page( $query_var ) {
		if ( is_author() && 'user' === get_query_var( 'ap_page' ) ) {
			$query_var = 'user';
		}

		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