Last active
January 30, 2018 17:41
-
-
Save jimfloss/f117fd2f5cc022f444376e76d75cd36d to your computer and use it in GitHub Desktop.
Force Template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function custom_page_template( $page_template ){ | |
if ( is_page( 'product-configurator' ) ) { | |
$page_template = dirname( __FILE__ ) . '/product_configurator.php'; | |
} | |
return $page_template; | |
} | |
add_filter( 'page_template', 'custom_page_template' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment