AnsPress_Theme::page_template( string $template )
Description #
Override page templates.
Parameters #
- $templatestring (Required) Current template.
Source #
File: includes/class-theme.php
public static function page_template( $template ){ if ( is_search() && 'question' === get_query_var( 'post_type' ) ) { return locate_template( 'page.php' ); } return $template; }
Expand full source code Collapse full source code View on GitHub: includes/class-theme.php:396
Add your comment