Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions src/php/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,17 @@ public function load_plugin() {
$this->admin = new Bootstrap_Admin();
}

new Snippets_REST_Controller();
new Cloud_Snippets_REST_Controller( $this->cloud_api );
new Recently_Active_REST_Controller();
new Plugins_Import_REST_Controller();
new File_Import_REST_Controller();
add_action(
'rest_api_init',
function () {
new Snippets_REST_Controller();
new Cloud_Snippets_REST_Controller( $this->cloud_api );
new Recently_Active_REST_Controller();
new Plugins_Import_REST_Controller();
new File_Import_REST_Controller();
},
1
);

new Shortcodes();
new MCE_Plugin();
Expand Down