So, I have the following code:
<?php if ( I_delete_user($user_id) || $demo_site->request_verification($user_id) || isset( $args["{$template}_button_primary"] ) || isset( $args["{$template}_button_secondary"] ) ) { ?>
<div class="submit_it">
<?php if (isset($args["{$template}_button_primary"]) ) { ?>
<input type="submit" value="<?php echo $args["{$template}_button_primary"]; ?>" class="my-button" />
<?php } ?>
</div>
<?php } ?>
Users can upload their picture and save it by clicking "submit" button while staying in the page.
I am trying to add a function so that when an user clicks this "submit" button on a specific page (post_id of 222, for example), the user is redirected to a different page (demo.com/another_page) once the save is done.
I am not sure how to go about it.
Any suggestions?
Thanks