WC_Admin_List_Table_Products::prepare_row_data( int $post_id )
Pre-fetch any data for the row each column has access to it. the_product 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-products.php
protected function prepare_row_data( $post_id ) { global $the_product; if ( empty( $this->object ) || $this->object->get_id() !== $post_id ) { $the_product = wc_get_product( $post_id ); $this->object = $the_product; } }