WC_Product_Data_Store_CPT::refresh_product_lookup_table
Refresh the product meta lookup table row for a given product.
Method of the class: WC_Product_Data_Store_CPT{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Product_Data_Store_CPT = new WC_Product_Data_Store_CPT(); $WC_Product_Data_Store_CPT->refresh_product_lookup_table( $product_id ): void;
- $product_id(int) (required)
- Product ID.
Changelog
| Since 10.8.0 | Introduced. |
WC_Product_Data_Store_CPT::refresh_product_lookup_table() WC Product Data Store CPT::refresh product lookup table code WC 10.8.1
public function refresh_product_lookup_table( int $product_id ): void {
$this->update_lookup_table( $product_id, 'wc_product_meta_lookup' );
}