ClassesBigCommercePost_TypesPost Type Config

Post_Type_Config

  • Full name: \BigCommerce\Post_Types\Post_Type_Config
  • This class is an Abstract class

Properties

post_type

protected string $post_type

Methods

__construct

public __construct(string $post_type): mixed

Parameters:

ParameterTypeDescription
$post_typestringThe post type name

register

Hook into WordPress to register the post type

public register(): mixed

post_type

public post_type(): string

Return Value:

The ID of the post type


get_args

Arguments to pass when registering the post type.

public get_args(): array

Filterable with register_post_type_args

  • This method is abstract.

See Also:

  • \BigCommerce\Post_Types\register_post_type() - for accepted args.

get_labels

Get labels for the post type.

public get_labels(): array

Filterable with post_type_labels_{$post_type_name}

  • This method is abstract.


Automatically generated on 2025-01-21