Profile::page_template( string $template )
Description #
Override user page template.
Parameters #
- $templatestring (Required) Template file.
Source #
File: addons/profile/profile.php
public function page_template( $template ) { if ( is_author() && 'user' === get_query_var( 'ap_page' ) ) { $user_slug = ap_opt( 'user_page_id' ); return locate_template( array( 'page-' . $user_slug . '.php', 'page.php' ) ); } return $template; }
Expand full source code Collapse full source code View on GitHub: addons/profile/profile.php:511
Add your comment