Profile::filter_page_title( object $_post )

Description #

Filter user page title.

Parameters #

  • $_post
    object (Required) WP post object.

Source #

File: addons/profile/profile.php

	public function filter_page_title( $_post ) {
		if ( 'user' === ap_current_page() && ap_opt( 'user_page' ) == $_post->ID && ! is_admin() ) { // phpcs:ignore Universal.Operators.StrictComparisons.LooseEqual
			$_post->post_title = $this->user_page_title();
		}
	}

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