ClassesBigCommerceContainerPost Types

Post_Types

Handles the management of custom post types, particularly for products in the WordPress admin interface.

This class integrates with various hooks and filters to customize post behavior, including slug management, permalink modification, featured image handling, and custom product status for unsupported products.

It also interfaces with the BigCommerce API to manage import processes, prevent publication of certain posts, and manage product deletion.

  • Full name: \BigCommerce\Container\Post_Types
  • Parent class: Provider

Constants

ConstantVisibilityTypeValue
PRODUCTpublicstring’post_type.product’
PRODUCT_CONFIGpublicstring’post_type.product.config’
PRODUCT_QUERYpublicstring’post_type.product.query’
PRODUCT_ADMINpublicstring’post_type.product.admin’
PRODUCT_UNSUPPORTEDpublicstring’post_type.product.unsupported’
PRODUCT_DELETIONpublicstring’post_type.product.deletion’
STORE_LINKSpublicstring’post_type.product.store_links’
CHANNEL_INDICATORpublicstring’post_type.product.channel_indicator’
CHANNEL_SYNCpublicstring’post_type.product.channel_sync’
PRODUCT_ADMIN_LISTpublicstring’post_type.product.admin_list’
PRODUCT_UNIQUE_SLUGpublicstring’post_type.product.unique_slug’
LISTING_RESETpublicstring’post_type.product.listing_reset’
PRODUCT_RESYNCpublicstring’post_type.product.resync_single’
PRODUCT_SEOpublicstring’post_type.product.seo’
CART_INDICATORpublicstring’post_type.page.cart_indicator’
CART_CREATORpublicstring’post_type.page.cart_creator’
QUEUEpublicstring’post_type.queue_task’
QUEUE_CONFIGpublicstring’post_type.queue_task.config’
SYNC_LOGpublicstring’post_type.sync_log’
SYNC_LOG_CONFIGpublicstring’post_type.sync_log.config’
WPGRAPHQL_PRODUCTSpublicstring’bigcommerce.wpgrapql_products’
WPGRAPHQL_CONFIGpublicstring’bigcommerce.wpgrapql_config’

Methods

register

Registers all post types and hooks them into the container.

public register(\Pimple\Container $container): void

Parameters:

ParameterTypeDescription
$container\Pimple\ContainerThe Pimple container.


Automatically generated on 2025-01-21