Add Data to Response of WP-JSON Root

function filterResponse($response){ $data = $response->data; $data[‘extra_field’] = ‘some data’; $response->set_data($data); return $response; } add_filter(‘rest_index’, ‘filterResponse’); Thanks to Jeff

No featured media in API request

You don’t set featured image for your post ,so return 0 in feature image obj. after set it you can use featured image obj. for example: I wrote this with PHP, you can upload this to another host and display the images of the WordPress website that you specified in the URL variable on those … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)