Wordpress Tips And Troubleshooting
Wordpress adding feature image link rest api
Go to appearence to theme editor find function.php
add_action('rest_api_init', 'register_rest_images' );
function register_rest_images(){
register_rest_field( array('post'),
'fimg_url',
array(
'get_callback' => 'get_rest_featured_image',
'update_callback' => null,
'schema' => null,
)
);
}
function get_rest_