woocommerce_order_class

woocommerce_order_class

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_order_class') is found 1 times:

  • /includes/class-wc-order-factory.php line 286
    			 * @param int    $order_id   Order ID.
    			 *
    			 * @since 3.0.0
    			 */
    			$order_class_names[ $order_id ] = apply_filters( 'woocommerce_order_class', $order_class_names[ $order_id ], $order_type, $order_id );
    
    			if ( ! class_exists( $order_class_names[ $order_id ] ) ) {
    				$order_class_names[ $order_id ] = false;
    			}
    		}
    		return $order_class_names;
    

See this hook used in plugins: