Rest API hook ‘rest_insert_post’ not returning request object
-
Rest API hook ‘rest_insert_post’ not returning request object
function wp_api_add_tax($post, $request, $update = true){ wp_mail('[email protected]','test','data'.json_encode($request). json_encode($post)); } add_action( 'rest_insert_post', 'wp_api_add_tax',10,3 );
It should return entire request object in mail, But returns empty request object altho post object is coming with data
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Rest API hook ‘rest_insert_post’ not returning request object’ is closed to new replies.