Screenshot New Years Sale Get the "ALL ACCESS PASS" and Save $349. Unlimited Licenses.
Show All Access Pass

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