Passing function into wp_safe_redirect
-
I have a function that returns a value like:
function test () { return 'https://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] }
And it doesn’t work if I do it with
wp_safe_redirect
like this:
wp_safe_redirect ( test () );
I understand this is not valid in PHP, so I’ve also tried:$temporary = test (); wp_safe_redirect ( $temporary );
But it’s not working too…
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Passing function into wp_safe_redirect’ is closed to new replies.