简体   繁体   English

在WordPress functions.php中使用POST参数

[英]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. 我需要使用get_header动作来挂接到我的functions.php中,以便可以检查是否将请求发送到正确的页面,但是在那时,$ _POST为空,可能是由于重定向。 Is there a way to somehow pass that info to my function: 有没有办法以某种方式将该信息传递给我的功能:

add_action('get_header', 'handle_app_post');

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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