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.


Top ↑

Return Return

(string)


Top ↑

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 '';
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.