I'm working on a plugin for WordPress that needs to create it's own unique style of pages.
The way the process was explained to me by someone else who did something similar was that when the first hook was ran, they did something like an exit() and then continued with their own code. That enabled them to show their own HTML on a page completely separate from the main theme and all that.
However, I've been unsuccessful at my attempts.
Here's my (basic) code for this.
function wps_show_page() {
if ($_GET['scratch'] == 1) {
exit();
//This is where I need to echo out a bunch of HTML
}
}
When I run this, nothing shows up on the page.
Which, I guess makes sense since I think exit() just shuts everything down for that thread.
Thanks in advance for the help!
<?php
exit( '<p>some HTML</p>' );
?>