[ad_1]
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
