• Resolved mklusak

    (@mklusak)


    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)
  • Hi @mklusak,

    I hope you are doing well.

    Let we reproduce this on our staging and get back to you.

    Thanks and Regards,

    Support Team-WP Experts.

    Plugin Support M Haseeb

    (@haseeb0001)

    Hi @mklusak

    I hope you are doing well.

    We are currently investigating this case. Could you please provide the list of active plugins on your website, along with the WordPress version and the name of the theme you are using? This will help us better understand the issue and resolve it more quickly.

    Thanks and regards,
    Support Team – WPExperts  

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Function site_url() returns nonsense in nonloggedin context’ is closed to new replies.