Add some comments for the return value of get_tax_classes and get_tax_class_slugs

This commit is contained in:
Justin Shreve 2017-01-25 13:48:29 -08:00
parent 474a307420
commit e176f008b8
1 changed files with 2 additions and 2 deletions

View File

@ -690,7 +690,7 @@ class WC_Tax {
/**
* Get store tax classes.
* @return array
* @return array Array of class names ("Reduced rate", "Zero rate", etc).
*/
public static function get_tax_classes() {
return array_filter( array_map( 'trim', explode( "\n", get_option( 'woocommerce_tax_classes' ) ) ) );
@ -700,7 +700,7 @@ class WC_Tax {
* Get store tax classes as slugs.
*
* @since 2.7.0
* @return array
* @return array Array of class slugs ("reduced-rate", "zero-rate", etc).
*/
public static function get_tax_class_slugs() {
return array_map( 'sanitize_title', self::get_tax_classes() );