File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed
Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -125,36 +125,6 @@ public function register_routes() {
125125 'schema ' => [ $ this , 'get_item_schema ' ],
126126 ]
127127 );
128-
129- register_rest_route (
130- $ this ->namespace ,
131- '/ ' . $ this ->rest_base . '/register-api-key ' ,
132- [
133- [
134- 'methods ' => \WP_REST_Server::CREATABLE ,
135- 'callback ' => [ $ this , 'register_api_key ' ],
136- 'permission_callback ' => function ( WP_REST_Request $ request ) {
137- return current_user_can ( 'manage_options ' );
138- },
139- ],
140- 'schema ' => [ $ this , 'get_item_schema ' ],
141- ]
142- );
143-
144- register_rest_route (
145- $ this ->namespace ,
146- '/ ' . $ this ->rest_base . '/toggle-auto-updates ' ,
147- [
148- [
149- 'methods ' => \WP_REST_Server::CREATABLE ,
150- 'callback ' => [ $ this , 'toggle_auto_updates ' ],
151- 'permission_callback ' => function ( WP_REST_Request $ request ) {
152- return current_user_can ( 'manage_options ' );
153- },
154- ],
155- 'schema ' => [ $ this , 'get_item_schema ' ],
156- ]
157- );
158128 }
159129
160130 /**
You can’t perform that action at this time.
0 commit comments