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"by (output started at /home/xxxxxx/europeanpaintings.rpc-staging.com/wp-includes/formatting.php:1021) in /home/xxxxx/mysite.com/wp-includes/pluggable.php on line 1228"
add_action('init', 'process_artwork');
function process_artwork(){
if(isset($_GET['ss-process'])) {
$newUrl = "/process-artwork/?processedArtwork=56";
wp_redirect( $newURL );
exit;
}
}