Turns out it’s the helpfully titled rest_prepare_category
filter
function prepare_restful_categories($response, $item, $request) {
// Do stuff to categories
}
add_filter('rest_prepare_category', 'prepare_restful_categories', 10, 3);
Turns out it’s the helpfully titled rest_prepare_category
filter
function prepare_restful_categories($response, $item, $request) {
// Do stuff to categories
}
add_filter('rest_prepare_category', 'prepare_restful_categories', 10, 3);