Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wprest api remove content from response

function devotees_rest_prepare_post($data, $post, $request)
{
    unset( $data->data['content']);
    return $data;
}

add_filter('rest_prepare_post', 'devotees_rest_prepare_post', 1, 3);
 
PREVIOUS NEXT
Tagged: #wprest #api #remove #content #response
ADD COMMENT
Topic
Name
5+5 =