Closed kosso closed 5 years ago
HI, When using the older WP-API/OAuth1 plugin, to get the consumer from within my plugin, I could use $consumer = WP_REST_OAuth1_Client::get( $id );
$consumer = WP_REST_OAuth1_Client::get( $id );
What is the equivalent for this newer WP-API/OAuth2 plugin?
Thanks.
You can use $client = WP\OAuth2\get_client( $id ) for this.
$client = WP\OAuth2\get_client( $id )
HI, When using the older WP-API/OAuth1 plugin, to get the consumer from within my plugin, I could use
$consumer = WP_REST_OAuth1_Client::get( $id );
What is the equivalent for this newer WP-API/OAuth2 plugin?
Thanks.