Not able to use data from request in custom action
-
Hello,
I’m trying to create a custom action that will receive data from TypeForm that I can then use to create a new user and update user meta. When I send a request from Typeform, I get a response, but I am not able to see the data in the Request payload in my action function.
Here is my code:
add_filter( 'wpwhpro/run/actions/custom_action/return_args', array($this, 'my_custom_callback_function' ) );
public function my_custom_callback_function( $return_args = null, $identifier = null, $response_body = null ){ var_dump($_POST); var_dump($response_body['content']); return $return_args; }
How can I see the data from the request? The var_dumps are empty array and NULL.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Not able to use data from request in custom action’ is closed to new replies.