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