WC_REST_Products_V1_Controller::get_attribute_taxonomy_label()
Get attribute taxonomy label.
Method of the class: WC_REST_Products_V1_Controller{}
No Hooks.
Return
String
.
Usage
// protected - for code of main (parent) or child class $result = $this->get_attribute_taxonomy_label( $name );
- $name(string) (required)
- Taxonomy name.
WC_REST_Products_V1_Controller::get_attribute_taxonomy_label() WC REST Products V1 Controller::get attribute taxonomy label code WC 9.8.1
protected function get_attribute_taxonomy_label( $name ) { $tax = get_taxonomy( $name ); $labels = get_taxonomy_labels( $tax ); return $labels->singular_name; }