ID ); if ( ! $order ) { return; } echo '
'; if ( ! Settings::connected() ) { echo '

' . wp_kses_post( sprintf( /* translators: %s: settings URL */ __( 'Connect a Telegram bot on the Orderchirp page to message customers.', 'orderchirp' ), esc_url( Admin_Page::url() ) ) ) . '

'; return; } if ( '' !== Subscribers::chat_for_order( $order ) ) { echo '

✅ ' . esc_html__( 'The customer gets updates about this order on Telegram.', 'orderchirp' ) . '

'; return; } echo '

' . esc_html__( 'The customer has not turned on Telegram updates. You can send them this link:', 'orderchirp' ) . '

'; echo ''; echo ''; } }