WC_Admin_List_Table_Orders::prepare_row_data( int $post_id )
Pre-fetch any data for the row each column has access to it. the_order global is there for bw compat.
Description Description
Parameters Parameters
- $post_id
-
(Required) Post ID being shown.
Source Source
File: includes/admin/list-tables/class-wc-admin-list-table-orders.php
protected function prepare_row_data( $post_id ) { global $the_order; if ( empty( $this->object ) || $this->object->get_id() !== $post_id ) { $this->object = wc_get_order( $post_id ); $the_order = $this->object; } }