[wp-hackers] Plugin replacing a page based on http variables

James Davis james at freecharity.org.uk
Thu Sep 20 11:04:07 GMT 2007


Alex Günsche wrote:

> The template_redirect hook will replace the actual output with yours.

That's almost, but not quite what I'm looking for. I'd like to output a
'page' in the style of the selected theme's page.php rather than one
I've written myself. Something like the following pseudo-code.

function mycontent() {
	if ('bar' == $_GET['foo']) {
		output_page(current_theme,$mypage_title,$mypage_content);
	}
}

James

-- 
http://www.freecharity.org.uk/ - Free IT services for charities
http://www.freecharity.org.uk/wiki/ - The VCSWiki


More information about the wp-hackers mailing list