Merge pull request #7798 from nguyenvanduocit/master

Add $the_order to woocommerce_order_class filter
This commit is contained in:
Mike Jolley 2015-03-23 13:13:41 +00:00
commit a2353ca8ff
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class WC_Order_Factory {
}
// Filter classname so that the class can be overridden if extended.
$classname = apply_filters( 'woocommerce_order_class', $classname, $post_type, $order_id );
$classname = apply_filters( 'woocommerce_order_class', $classname, $post_type, $order_id, $the_order );
if ( ! class_exists( $classname ) ) {
$classname = 'WC_Order';