I have created a wordpress shortcode which outputs a form. The following is my shortcode
function testcode(){
echo "<h1>TEST</h1>";
}
add_shortcode("test-code","testcode");
What i want is to be able to include the <h1>Test</h1> in a file such that users who want to override the shorcode can simply create a new file.
So something like
function testcode(){
//load html from a a file like templates/test.php
}
add_shortcode("test-code","testcode");
How do i proceed to make this reusable and extendable?