We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e88f986 commit b9e91ecCopy full SHA for b9e91ec
plugin.php
@@ -16,10 +16,14 @@
16
function bootstrap() {
17
load();
18
19
- /** @todo Implement this :) */
+ // Core authentication hooks.
20
add_filter( 'determine_current_user', __NAMESPACE__ . '\\Authentication\\attempt_authentication', 11 );
21
add_filter( 'rest_authentication_errors', __NAMESPACE__ . '\\Authentication\\maybe_report_errors' );
22
+
23
+ // Internal default hooks.
24
add_filter( 'oauth2.grant_types', __NAMESPACE__ . '\\register_grant_types', 0 );
25
26
+ // Admin-related.
27
add_action( 'init', __NAMESPACE__ . '\\rest_oauth2_load_authorize_page' );
28
add_action( 'admin_menu', array( __NAMESPACE__ . '\\admin\\Admin', 'register' ) );
29
}
0 commit comments