ap_active_user_page()

Description #

Return current page in user profile.

Changelog #

VersionDescription
2.4.7Added new filter ap_active_user_page.
2.0.1Introduced.

Source #

File: includes/functions.php

function ap_active_user_page() {
	$user_page = sanitize_text_field( get_query_var( 'user_page' ) );

	if ( ! empty( $user_page ) ) {
		return $user_page;
	}

	$page = 'about';

	return apply_filters( 'ap_active_user_page', $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