Function site_url() returns nonsense in nonloggedin context
-
Why is this plugin filtering site_url() function? I have a frontend form that is processed in wp-admin/admin-ajax.php, and anyone can submit it. It does its job and creates unique (frontend!!!) URL for every entry:
$url = add_query_arg( [ 'somearg' => $value ], site_url() );
I just want website home page URL from site_url() … but if the user submitting form is not logged in, site_url() returns only /my-hidden-login-url, and everything fails.
site_url() should return consistent URL independently if the user is logged in or not.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Function site_url() returns nonsense in nonloggedin context’ is closed to new replies.