WC_Product_Data_Store_CPT::get_primary_key_for_lookup_table( string $table )
Get primary key name for lookup table.
Description Description
Parameters Parameters
- $table
-
(Required) Lookup table name.
Return Return
(string)
Source Source
File: includes/data-stores/class-wc-product-data-store-cpt.php
protected function get_primary_key_for_lookup_table( $table ) { if ( 'wc_product_meta_lookup' === $table ) { return 'product_id'; } return ''; }
Changelog Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |