WordPress.org

Ready to get started?Download WordPress

Forums

Get PHP $_POST variable from plugin (4 posts)

  1. shuwo
    Member
    Posted 3 years ago #

    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.

  2. shuwo
    Member
    Posted 3 years ago #

    Bump. Anyone?

  3. Mark / t31os
    Moderator
    Posted 3 years ago #

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

  4. Rebecca Schaefer
    Member
    Posted 3 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