Get PHP $_POST variable from plugin (4 posts)

  1. shuwo
    Posted 5 years ago #


    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?


  2. shuwo
    Posted 5 years ago #

    Bump. Anyone?

  3. Mark / t31os

    Posted 5 years ago #

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

  4. Rebecca O'Brien
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic