woocommerce_attribute_orderby

woocommerce_attribute_orderby

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_attribute_orderby') is found 1 times:

  • /includes/wc-attribute-functions.php line 225
    	$name       = wc_attribute_taxonomy_slug( $name );
    	$id         = wc_attribute_taxonomy_id_by_name( $name );
    	$taxonomies = wc_get_attribute_taxonomies();
    
    	return apply_filters( 'woocommerce_attribute_orderby', isset( $taxonomies[ 'id:' . $id ] ) ? $taxonomies[ 'id:' . $id ]->attribute_orderby : 'menu_order', $name );
    }
    
    /**
     * Get an array of product attribute taxonomies.
     *
     * @return array