XRDS-Simple
This plugin allows the user to easily delegate their OpenID to their Wordpress blog, and also allows other plugins to easily add XRDS-Simple services / XRDs to the document (such as an OAuth plugin easily adding OAuth discovery data).
The API
To add an XRDS-simple section from you own plugin (1) require that this one be installed (maybe even include it in the archive) (2) add data like so:
register_xrd_service('main', 'Service Name', array(
'Type' => array( array('content' => 'TYPE URI') ),
'URI' => array( array('content' => 'SERVICE URL' ) ),
) );
You can also add an XRD by registering it with register_xrd('id') - and then using id instead of main in the register_xrd_service call.






Post a Comment