I'm trying to figure out how to properly register a page template (and all of the associated assets, like CSS and Images) from a plugin. Basically, I've created a landing page that I want to live outside of the Theme, so I can use it on multiple websites.
My code was as follows:
add_filter( 'page_template', 'custom_page_template' );
function custom_page_template( $page_template )
{
$page_template = dirname( __FILE__ ) . '/custom-page-template.php';
return $page_template;
}
But I'm not seeing the page template within WordPress.