Property | Type | Description | |
---|---|---|---|
$internal_meta_keys | array | Data stored in meta keys, but not considered "meta" for an order. |
Method | Description | |
---|---|---|
create ( WC_Order &$order ) | Method to create a new order in the database. | |
get_download_permissions_granted ( WC_Order | integer $order ) : boolean | Gets information about whether permissions were generated yet. | |
get_order_count ( string $type ) : integer | Return count of orders with type. | |
get_order_id_by_order_key ( string $order_key ) : integer | Finds an Order ID based on an order key. | |
get_orders ( array $args = [] ) : array | Get all orders matching the passed in args. | |
get_recorded_coupon_usage_counts ( WC_Order | integer $order ) : boolean | Gets information about whether coupon counts were updated. | |
get_recorded_sales ( WC_Order | integer $order ) : boolean | Gets information about whether sales were recorded. | |
get_stock_reduced ( WC_Order | integer $order ) : boolean | Gets information about whether stock was reduced. | |
get_total_refunded ( $order ) : string | Get amount already refunded. | |
get_total_shipping_refunded ( $order ) : float | Get the total shipping refunded. | |
get_total_tax_refunded ( $order ) : float | Get the total tax refunded. | |
get_unpaid_orders ( $date ) : array | Get unpaid orders after a certain date, | |
search_orders ( string $term ) : array | Search order data for a term and return ids. | |
set_download_permissions_granted ( WC_Order | integer $order, boolean $set ) | Stores information about whether permissions were generated yet. | |
set_recorded_coupon_usage_counts ( WC_Order | integer $order, boolean $set ) | Stores information about whether coupon counts were updated. | |
set_recorded_sales ( WC_Order | integer $order, boolean $set ) | Stores information about whether sales were recorded. | |
set_stock_reduced ( WC_Order | integer $order, boolean $set ) | Stores information about whether stock was reduced. |
Method | Description | |
---|---|---|
get_post_excerpt ( WC_Order $order ) : string | Excerpt for post. | |
read_order_data ( &$order, object $post_object ) | Read order data. Can be overridden by child classes to load other props. | |
update_post_meta ( &$order ) | Helper method that updates all the post meta for an order based on it's settings in the WC_Order class. |
Method | Description | |
---|---|---|
get_orders_generate_customer_meta_query ( array $values, string $relation = 'or' ) : array | Generate meta query for wc_get_orders. |
public create ( WC_Order &$order ) | ||
$order | WC_Order |
public get_download_permissions_granted ( WC_Order | integer $order ) : boolean | ||
$order | WC_Order | integer | |
return | boolean |
public get_order_count ( string $type ) : integer | ||
$type | string | |
return | integer |
public get_order_id_by_order_key ( string $order_key ) : integer | ||
$order_key | string | An order key has generated by |
return | integer | The ID of an order, or 0 if the order could not be found |
public get_orders ( array $args = [] ) : array | ||
$args | array | |
return | array | of orders |
protected get_post_excerpt ( WC_Order $order ) : string | ||
$order | WC_Order | |
return | string |
public get_recorded_coupon_usage_counts ( WC_Order | integer $order ) : boolean | ||
$order | WC_Order | integer | |
return | boolean |
public get_recorded_sales ( WC_Order | integer $order ) : boolean | ||
$order | WC_Order | integer | |
return | boolean |
public get_stock_reduced ( WC_Order | integer $order ) : boolean | ||
$order | WC_Order | integer | |
return | boolean |
public get_total_refunded ( $order ) : string | ||
return | string |
public get_total_shipping_refunded ( $order ) : float | ||
return | float |
public get_total_tax_refunded ( $order ) : float | ||
return | float |
public get_unpaid_orders ( $date ) : array | ||
return | array |
protected read_order_data ( &$order, object $post_object ) | ||
$post_object | object |
public search_orders ( string $term ) : array | ||
$term | string | |
return | array | of ids |
public set_download_permissions_granted ( WC_Order | integer $order, boolean $set ) | ||
$order | WC_Order | integer | |
$set | boolean |
public set_recorded_coupon_usage_counts ( WC_Order | integer $order, boolean $set ) | ||
$order | WC_Order | integer | |
$set | boolean |
public set_recorded_sales ( WC_Order | integer $order, boolean $set ) | ||
$order | WC_Order | integer | |
$set | boolean |
public set_stock_reduced ( WC_Order | integer $order, boolean $set ) | ||
$order | WC_Order | integer | |
$set | boolean |
protected update_post_meta ( &$order ) |
protected array $internal_meta_keys | ||
return | array |