Callback function
-
Hi, i need to make a callback function for a POST API REST to a custom taxonomy make with PODS.
The API REST is active for all fields of the custom taxonomy.
I made this code for the callback call but i dont receive the POST data.
add_action( 'rest_api_init', function () { register_rest_route( 'wp/v2', '/like', array( 'methods' => 'POST', 'callback' => 'handle_like', ) ); } );
Where i wrong?
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Callback function’ is closed to new replies.