dozent_get_wc_order( int $order_id )
Get WooCommerce Order with Exception Support
Parameters
- $order_id
-
(int) (Required)
Return
(WC_Order|null)
Source
File: includes/integration-functions.php
function dozent_get_wc_order( $order_id = 0 ) { $order = null; if ( $order_id && class_exists( 'WC_Order' ) ) { try { $order = new WC_Order( $order_id ); } catch ( Exception $e ) { // } } return $order; }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |