Wp_redirect and sending variables
How to send some variables with wp_redirect() from function.php file in my theme folder? if ( $post_id ) { $variable_to_send = ‘1’; wp_redirect( home_url(), $variable_to_send ); exit; } And on homepage I will catch the variable in if-else condition to show some confirmation or not depending if $variable_to_send = ‘1’ or not. How to do … Read more