Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('template_include', 'my_function_name', PHP_INT_MAX, 2 );
- function my_function_name( $template ) {
- if(is_page('about')){
- $template = dirname( __FILE__ ) . '/templates/about.php';
- }
- return $template;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement