Forums

How to disable query var called "name"? (2 posts)

  1. Birmingham
    Member
    Posted 5 months ago #

    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...

  2. abailey
    Member
    Posted 2 months ago #

    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?

Reply

You must log in to post.

About this Topic