Title: Get PHP $_POST variable from plugin
Last modified: August 19, 2016

---

# Get PHP $_POST variable from plugin

 *  [shuwo](https://wordpress.org/support/users/shuwo/)
 * (@shuwo)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/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)

 *  Thread Starter [shuwo](https://wordpress.org/support/users/shuwo/)
 * (@shuwo)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/get-php-_post-variable-from-plugin/#post-1646202)
 * Bump. Anyone?
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/get-php-_post-variable-from-plugin/#post-1646221)
 * Where are you sending the POST request to? …. it’s the URL your form submits 
   to.
 *  [Rebecca O'Brien](https://wordpress.org/support/users/rjmastey/)
 * (@rjmastey)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/get-php-_post-variable-from-plugin/#post-1646225)
 * 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.

## Tags

 * [hook](https://wordpress.org/support/topic-tag/hook/)
 * [init](https://wordpress.org/support/topic-tag/init/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 3 replies
 * 3 participants
 * Last reply from: [Rebecca O'Brien](https://wordpress.org/support/users/rjmastey/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/get-php-_post-variable-from-plugin/#post-1646225)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
