REST api stopped working
-
Following rest api call is stopped working after the last update
$request1 = new WP_REST_Request( 'POST', '/mpp/v2/profile-image/me' ); $request1->set_param( 'media_id', $attachment_id ); $request1->set_header( 'X-WP-Nonce', wp_create_nonce( 'wp_rest' ) ); $response1 = rest_do_request( $request1 );
I am getting “user is not owner error”. Although I am authenticating the user in my custom rest api call.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘REST api stopped working’ is closed to new replies.