Search
 
SCRIPT & CODE EXAMPLE
 

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);
Comment

PREVIOUS NEXT
Code Example
Php :: To Search Specific Post Type 
Php :: function to find total number of students in wplms 
Php :: laravel media library regenerate 
Php :: laravel download file from storage with progress bar 
Php :: list bulan php 
Php :: what does php stand for 
Php :: start day picker and end date picker in php 
Php :: PHP SSRF Wrapper/URL Schema 
Php :: PHPExcel not supporting long integer value 
Php :: Drupal 9 loop term objects to retrieve term data (id, name, uuid) 
Php :: wp-config.php location 
Php :: how to check my server use cgi, fcgi or fpm. 
Php :: multiple checked delete in laravel8 
Php :: function to fetch user details 
Php :: WordPress Emojis abschalten 
Php :: acf select multiple choice array in loop 
Php :: 0.1 eth to php 
Php :: laravel relationship hasmany 
Php :: check backend post type 
Php :: wp php blog info background image 
Php :: Remove auto generate p from category description 
Php :: Remove values from select list based on condition 
Php :: validations php or js 
Php :: php Prefix Sum of Matrix (Or 2D Array) 
Php :: livewire layout error 
Php :: add multi product at the same time using repearter default view laravel 
Php :: php function return type self 
Php :: laravel Undefined index: token on reset 
Php :: laravel permit only some inputs 
Php :: show real number and not exponential form php 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =