I have the following action and function. Ultimately i'm trying to get access to value $processArtwork in my template. One option is pass the value via the querystring. However the following results in
"Warning: Cannot modify header information - headers already sent by"
add_action('init', 'process_artwork');
function process_artwork(){
if(isset($_GET['ss-process'])) {
$newUrl = "/process-artwork/?processedArtwork=56";
wp_redirect( $newURL );
exit;
}
}