ClassesBigCommercePost_TypesProductWpgraph Product

WPGraph_Product

  • Full name: \BigCommerce\Post_Types\Product\WPGraph_Product

Constants

ConstantVisibilityTypeValue
SINGULARpublic’BCProduct’
PLURALpublic’BCProducts’

Methods

__construct

public __construct(\BigCommerce\Post_Types\Product\WPGraph_Config $config): mixed

Parameters:

ParameterTypeDescription
$config\BigCommerce\Post_Types\Product\WPGraph_Config

register

public register(): mixed

register_field_types

Add support for collection fields like BCVariants and BCVariantsOptions

protected register_field_types(): void

register_product_properties

Process single product and register fields for it

protected register_product_properties(): void

register_variants

Register variants collection field

protected register_variants(): void

register_variants_options

Register single variant option values field and tie it to the BCVariants field

protected register_variants_options(): void


Automatically generated on 2025-01-21