wc_attribute_taxonomy_name( string $attribute_name )
Get a product attribute name.
Description #Description
Parameters #Parameters
- $attribute_name
-
(Required) Attribute name.
Return #Return
(string)
Source #Source
File: includes/wc-attribute-functions.php
function wc_attribute_taxonomy_name( $attribute_name ) { return $attribute_name ? 'pa_' . wc_sanitize_taxonomy_name( $attribute_name ) : ''; }
Related #Related
Uses #Uses
Uses | Description |
---|---|
includes/wc-formatting-functions.php: wc_sanitize_taxonomy_name() |
Sanitize taxonomy names. Slug format (no spaces, lowercase). |
Used By #Used By
Used By | Description |
---|---|
includes/class-wc-post-types.php: WC_Post_Types::updated_term_messages() |
Customize taxonomies update messages. |
packages/woocommerce-blocks/src/StoreApi/Schemas/CartItemSchema.php: CartItemSchema::format_variation_data() |
Format variation data, for example convert slugs such as attribute_pa_size to Size. |
includes/wc-update-functions.php: wc_update_220_attributes() |
Update attributes for 2.2 |
includes/admin/wc-admin-functions.php: wc_get_screen_ids() |
Get all WooCommerce screen ids. |
includes/admin/class-wc-admin-attributes.php: WC_Admin_Attributes::add_attribute() |
Add Attribute admin panel. |
includes/import/abstract-wc-product-importer.php: WC_Product_Importer::get_attribute_taxonomy_id() |
Get attribute taxonomy ID from the imported data. |
includes/class-wc-post-types.php: WC_Post_Types::register_taxonomies() |
Register core taxonomies. |
includes/legacy/api/v2/class-wc-api-products.php: WC_API_Products::get_product_attribute() |
Get the product attribute for the given ID |
includes/legacy/api/v2/class-wc-api-products.php: WC_API_Products::validate_attribute_data() |
Validate attribute data. |
includes/legacy/api/v2/class-wc-api-products.php: WC_API_Products::delete_product_attribute() |
Delete a product attribute |
includes/legacy/api/v2/class-wc-api-products.php: WC_API_Products::get_product_attributes() |
Get a listing of product attributes |
includes/wc-template-functions.php: wc_get_formatted_cart_item_data() |
Gets and formats a list of cart item data + variations for display on the frontend. |
includes/widgets/class-wc-widget-layered-nav.php: WC_Widget_Layered_Nav::init_settings() |
Init settings after post types are registered. |
includes/widgets/class-wc-widget-layered-nav.php: WC_Widget_Layered_Nav::get_instance_taxonomy() |
Get this widgets taxonomy. |
includes/wc-attribute-functions.php: wc_create_attribute() |
Create attribute. |
includes/wc-attribute-functions.php: wc_delete_attribute() |
Delete attribute by ID. |
includes/wc-attribute-functions.php: wc_get_attribute() |
Get attribute data by ID. |
includes/wc-attribute-functions.php: wc_get_attribute_taxonomy_names() |
Get an array of product attribute taxonomies. |
includes/wc-attribute-functions.php: wc_attribute_taxonomy_name_by_id() |
Get a product attribute name by ID. |
includes/class-wc-query.php: WC_Query::get_layered_nav_chosen_attributes() |
Get an array of attributes and terms selected with the layered nav widget. |
includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php: WC_REST_Product_Attributes_V1_Controller::prepare_item_for_response() |
Prepare a single product attribute output for response. |
includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php: WC_REST_Product_Attributes_V1_Controller::validate_attribute_slug() |
Validate attribute slug. |
includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php: WC_REST_Products_V2_Controller::get_attribute_taxonomy_name() |
Get product attribute taxonomy name. |