settings = $settings; } /** * Module id. * * @since 1.0.0 * * @return string */ public function id(): string { return 'analysis'; } /** * Module label. * * @since 1.0.0 * * @return string */ public function label(): string { return __( 'Content analysis and editor tools', 'elevenrank' ); } /** * Registers the hooks. * * @since 1.0.0 * * @return void */ public function boot(): void { $fields = new Meta_Fields( $this->settings ); ( new Editor_Assets( $this->settings, $fields ) )->hooks(); ( new Classic_Metabox( $fields ) )->hooks(); ( new Post_List_Columns( $fields ) )->hooks(); add_action( 'rest_api_init', array( $this, 'register_routes' ) ); } /** * Registers the analysis routes. * * @since 1.0.0 * * @return void */ public function register_routes(): void { ( new Analysis_Controller() )->register_routes(); } }