I am relatively new to creating plugin's but I need to create 2 or 3 custom page templates for a plugin I am creating for a client. When I include these files it breaks the site.
Is there a hook or a method on how to register custom page templates ?
The only thing I found was to use the page_template filter and check the post ID which is not ideal.
Thanks in advance