settings, 'register' ) ); add_action( 'admin_menu', function (): void { add_submenu_page( 'a11yfleet', __( 'A11yFleet Settings', 'a11yfleet' ), __( 'Settings', 'a11yfleet' ), 'manage_options', 'a11yfleet-settings', array( $this, 'render' ) ); } ); } /** * Renders the settings form. */ public function render(): void { if ( ! current_user_can( 'manage_options' ) ) { return; } $current = $this->settings->get(); $post_types = get_post_types( array( 'public' => true ), 'objects' ); $option = Settings::OPTION; ?>