woocommerce_attribute_orderby

woocommerce_attribute_orderby

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_attribute_orderby') is found 1 times:

  • /includes/wc-attribute-functions.php line 227
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
        $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