WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Admin_List_Table_Orders::render_order_status_column() protected WC 1.0

Render columm: order_status.

Это метод класса: WC_Admin_List_Table_Orders{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->render_order_status_column();

Код WC Admin List Table Orders::render order status column: woocommerce/includes/admin/list-tables/class-wc-admin-list-table-orders.php WC 4.5.2

<?php
protected function render_order_status_column() {
	$tooltip                 = '';
	$comment_count           = get_comment_count( $this->object->get_id() );
	$approved_comments_count = absint( $comment_count['approved'] );

	if ( $approved_comments_count ) {
		$latest_notes = wc_get_order_notes(
			array(
				'order_id' => $this->object->get_id(),
				'limit'    => 1,
				'orderby'  => 'date_created_gmt',
			)
		);

		$latest_note = current( $latest_notes );

		if ( isset( $latest_note->content ) && 1 === $approved_comments_count ) {
			$tooltip = wc_sanitize_tooltip( $latest_note->content );
		} elseif ( isset( $latest_note->content ) ) {
			/* translators: %d: notes count */
			$tooltip = wc_sanitize_tooltip( $latest_note->content . '<br/><small style="display:block">' . sprintf( _n( 'Plus %d other note', 'Plus %d other notes', ( $approved_comments_count - 1 ), 'woocommerce' ), $approved_comments_count - 1 ) . '</small>' );
		} else {
			/* translators: %d: notes count */
			$tooltip = wc_sanitize_tooltip( sprintf( _n( '%d note', '%d notes', $approved_comments_count, 'woocommerce' ), $approved_comments_count ) );
		}
	}

	if ( $tooltip ) {
		printf( '<mark class="order-status %s tips" data-tip="%s"><span>%s</span></mark>', esc_attr( sanitize_html_class( 'status-' . $this->object->get_status() ) ), wp_kses_post( $tooltip ), esc_html( wc_get_order_status_name( $this->object->get_status() ) ) );
	} else {
		printf( '<mark class="order-status %s"><span>%s</span></mark>', esc_attr( sanitize_html_class( 'status-' . $this->object->get_status() ) ), esc_html( wc_get_order_status_name( $this->object->get_status() ) ) );
	}
}