简体   繁体   中英

Using POST parameters in WordPress functions.php

I need to use get_header action to hook onto into my functions.php, so that I can check if the request is being sent to a proper page, but at that point in time, $_POST is empty, probably because of redirect. Is there a way to somehow pass that info to my function:

add_action('get_header', 'handle_app_post');

与WordPress开发人员交谈后,不可以,由于WordPress中的内部重定向,这是不可能的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM