ClassesBigCommerceTaxonomiesProduct_CategoryConfig

Config

Methods

get_args

Arguments to pass when registering the taxonomy.

public get_args(): array

Filterable with register_taxonomy_args

See Also:

  • \BigCommerce\Taxonomies\Product_Category\register_taxonomy() - for accepted args.

get_labels

Get labels for the taxonomy.

public get_labels(): array

Filterable with taxonomy_labels_{$taxonomy_name}


Inherited methods

__construct

public __construct(string $taxonomy, array $post_types): mixed

Parameters:

ParameterTypeDescription
$taxonomystringThe ID of the taxonomy
$post_typesarrayAn array of post types that will use this taxonomy

register

Hook into WordPress to register the taxonomy

public register(): mixed

taxonomy

public taxonomy(): string

Return Value:

The ID of the taxonomy


post_types

public post_types(): array

Return Value:

The IDs of the post types associated with this taxonomy


get_args

Arguments to pass when registering the taxonomy.

public get_args(): array

Filterable with register_taxonomy_args

  • This method is abstract.

See Also:

  • \BigCommerce\Taxonomies\register_taxonomy() - for accepted args.

get_labels

Get labels for the taxonomy.

public get_labels(): array

Filterable with taxonomy_labels_{$taxonomy_name}

  • This method is abstract.

get_products_slug

Get the products archive slug. We use get_option here rather than get_post_type() because we’re looking for it to add to taxonomy slugs before the post type has been registered.

protected get_products_slug(): string

Return Value:

The slug for the products archive


get_caps

protected get_caps(): mixed


Automatically generated on 2025-01-21