Screenshot Exclusive SAVE 10% on WP OAuth Server using the discount code "HSGTEYD" at checkout
GET DEAL
3rd Party Integration

Extending the OpenID Discovery API

Published: October 4, 2018 | Updated: December 3rd, 2018
  1. Home
  2. Docs
  3. How To
  4. Extending the OpenID Discovery API

To extend the OpenID Discovery API, you have the option to use WordPress’s filter API. Below is an example of how to extend the OpenID Discovery API and add a new parameter to the response of “new_value_key”.

function modify_openid_discovery_api( $return ) {
    $return['new_discovery_value'] = array(
        'new_value_key' => 'Some value'
    );

    return $return;
}

add_filter( 'wo_openid_discovery', 'modify_openid_discovery_api' );
Icon