wordpress safe redirect code example
Example: wp safe redirect
<?php
// Note: wp_safe_redirect() does not exit automatically,
// and should almost always be followed by a call to exit
// This is for WordPress
?>
<?php
// $url = string
wp_safe_redirect( $url );
exit;
?>