This can be used to call a custom template when some condition is met. This can be used to catch $_POST data and do something with it. It can be used to redirect people if some condition is right.
1 2 3 4 5 6 7 | function process_something() { if ( is_single() && in_category(69)) { include (TEMPLATEPATH . '/something.php' ); exit (); } } add_action( 'template_redirect' , 'process_something' ); |