Config
- Full name:
\BigCommerce\Taxonomies\Product_Category\Config - Parent class:
\BigCommerce\Taxonomies\Taxonomy_Config
Methods
get_args
Arguments to pass when registering the taxonomy.
public get_args(): arrayFilterable 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(): arrayFilterable with taxonomy_labels_{$taxonomy_name}
Inherited methods
__construct
public __construct(string $taxonomy, array $post_types): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$taxonomy | string | The ID of the taxonomy |
$post_types | array | An array of post types that will use this taxonomy |
register
Hook into WordPress to register the taxonomy
public register(): mixedtaxonomy
public taxonomy(): stringReturn Value:
The ID of the taxonomy
post_types
public post_types(): arrayReturn Value:
The IDs of the post types associated with this taxonomy
get_args
Arguments to pass when registering the taxonomy.
public get_args(): arrayFilterable 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(): arrayFilterable 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(): stringReturn Value:
The slug for the products archive
get_caps
protected get_caps(): mixedAutomatically generated on 2025-01-21