public/wordpress/wp-content/plugins/wp-courseware/includes/models/order.php
/**
	 * Delete Related Orders.
	 *
	 * @since 4.3.0
	 *
	 * @return array An array of deleted orders.
	 */
Delete Related Orders.

@return array An array of deleted orders.
Delete Related Orders . @return array An array of deleted orders .
public function delete_related_orders() {
		$deleted_orders = array();
		if ( $related_orders = $this->get_related_orders( array(), true ) ) {
			foreach ( $related_orders as $related_order ) {
				if ( $related_order->get_id() ) {
					$deleted_orders[ $related_order->get_id() ] = $related_order->delete();
				}
			}
		}
		return $deleted_orders;
	}
public function delete_related_orders ( ) { $ deleted_orders = array ( ) ; if ( $ related_orders = $ this -> get_related_orders ( array ( ) , true ) ) { foreach ( $ related_orders as $ related_order ) { if ( $ related_order -> get_id ( ) ) { $ deleted_orders [ $ related_order -> get_id ( ) ] = $ related_order -> delete ( ) ; } } } return $ deleted_orders ; }
Delete Related Orders.
Delete Related Orders .
/** @var Order $related_order */