• My supplier sends POST data to my site and it includes Name = blaaa. This is a WordPress public query var so my page won’t load, it always returns Error 404 Page Not Found!

    Please help!

    I need something like a filter for functions.php to disable/remove query var called “name” whenever the page has ID of 150, then that page can receive POST data from my supplier without throwing Error 404

    I checked all the web, no answers! Can anyone help please… I am not expert but have used some filters before…

Viewing 1 replies (of 1 total)
  • Just ran into the same problem

    add_filter('request', array($this,'on_request'));
    function on_request($vars){
      unset($vars['name']);
      return $vars;
    }

    Does anybody know what WP uses it for?

Viewing 1 replies (of 1 total)
  • The topic ‘How to disable query var called "name"?’ is closed to new replies.