Support » Plugins and Hacks » Hacks » Get PHP $_POST variable from plugin

  • Yo.

    How can I get the PHP superglobal $_POST?

    My plugin uses the add_action with the ‘init’ hook. I’m able to access the $_GET and $_COOKIE variables but the $_POST always stays empty, why?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Bump. Anyone?

    Where are you sending the POST request to? …. it’s the URL your form submits to.

    Could you post some code so we know where the POST is coming from and the environment you’re trying to get it from? The form that submits and the function that’s supposed to be dealing with it (the one called by the hook) would be awesome.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get PHP $_POST variable from plugin’ is closed to new replies.