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
Constant | Visibility | Type | Value |
---|---|---|---|
PRODUCT | public | string | ’post_type.product’ |
PRODUCT_CONFIG | public | string | ’post_type.product.config’ |
PRODUCT_QUERY | public | string | ’post_type.product.query’ |
PRODUCT_ADMIN | public | string | ’post_type.product.admin’ |
PRODUCT_UNSUPPORTED | public | string | ’post_type.product.unsupported’ |
PRODUCT_DELETION | public | string | ’post_type.product.deletion’ |
STORE_LINKS | public | string | ’post_type.product.store_links’ |
CHANNEL_INDICATOR | public | string | ’post_type.product.channel_indicator’ |
CHANNEL_SYNC | public | string | ’post_type.product.channel_sync’ |
PRODUCT_ADMIN_LIST | public | string | ’post_type.product.admin_list’ |
PRODUCT_UNIQUE_SLUG | public | string | ’post_type.product.unique_slug’ |
LISTING_RESET | public | string | ’post_type.product.listing_reset’ |
PRODUCT_RESYNC | public | string | ’post_type.product.resync_single’ |
PRODUCT_SEO | public | string | ’post_type.product.seo’ |
CART_INDICATOR | public | string | ’post_type.page.cart_indicator’ |
CART_CREATOR | public | string | ’post_type.page.cart_creator’ |
QUEUE | public | string | ’post_type.queue_task’ |
QUEUE_CONFIG | public | string | ’post_type.queue_task.config’ |
SYNC_LOG | public | string | ’post_type.sync_log’ |
SYNC_LOG_CONFIG | public | string | ’post_type.sync_log.config’ |
WPGRAPHQL_PRODUCTS | public | string | ’bigcommerce.wpgrapql_products’ |
WPGRAPHQL_CONFIG | public | string | ’bigcommerce.wpgrapql_config’ |
Methods
register
Registers all post types and hooks them into the container.
public register(\Pimple\Container $container): void
Parameters:
Parameter | Type | Description |
---|---|---|
$container | \Pimple\Container | The Pimple container. |
Automatically generated on 2025-01-21