Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LookupDataStore::insert_lookup_table_data( int $product_id, int $product_or_parent_id, string $taxonomy, int $term_id, bool $is_variation_attribute, bool $has_stock )

Insert one entry in the lookup table.


Description Description


Parameters Parameters

$product_id

(Required) The product id.

$product_or_parent_id

(Required) The product id for non-variable products, the main/parent product id for variations.

$taxonomy

(Required) Taxonomy name.

$term_id

(Required) Term id.

$is_variation_attribute

(Required) True if the taxonomy corresponds to an attribute used to define variations.

$has_stock

(Required) True if the product is in stock.


Top ↑

Source Source

File: src/Internal/ProductAttributesLookup/LookupDataStore.php


			


Top ↑

User Contributed Notes User Contributed Notes

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