Skip to content

Commit b9e91ec

Browse files
committed
Document hooks on registration
1 parent e88f986 commit b9e91ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugin.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@
1616
function bootstrap() {
1717
load();
1818

19-
/** @todo Implement this :) */
19+
// Core authentication hooks.
2020
add_filter( 'determine_current_user', __NAMESPACE__ . '\\Authentication\\attempt_authentication', 11 );
2121
add_filter( 'rest_authentication_errors', __NAMESPACE__ . '\\Authentication\\maybe_report_errors' );
22+
23+
// Internal default hooks.
2224
add_filter( 'oauth2.grant_types', __NAMESPACE__ . '\\register_grant_types', 0 );
25+
26+
// Admin-related.
2327
add_action( 'init', __NAMESPACE__ . '\\rest_oauth2_load_authorize_page' );
2428
add_action( 'admin_menu', array( __NAMESPACE__ . '\\admin\\Admin', 'register' ) );
2529
}

0 commit comments

Comments
 (0)