__( 'Station Home', 'desktop-mode' ), 'icon' => 'dashicons-dashboard', 'template' => 'openstation_station_home_render_template', 'script' => 'os-station-home', 'style' => 'os-station-home', 'width' => 1240, 'height' => 760, 'min_width' => 640, 'min_height' => 480, 'placement' => 'none', 'main_tab_padding' => 0, 'capabilities' => array( 'read' ), 'config' => array( 'endpoint' => esc_url_raw( rest_url( 'desktop-mode/v1/station-home' ) ), 'cardsEndpoint' => esc_url_raw( rest_url( 'desktop-mode/v1/station-home/cards' ) ), ), ) ); if ( is_wp_error( $registered ) ) { // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log error_log( '[openstation] Station Home registration failed: ' . $registered->get_error_message() ); } } add_action( 'init', 'openstation_station_home_register_window', 20 );