Answers for "wp_safe_redirect wordpress"

PHP
1

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;
?>
Posted by: Guest on April-06-2021

Browse Popular Code Answers by Language