PHP 클래스 WC_Order

저자: WooThemes
상속: extends WC_Abstract_Order
파일 보기 프로젝트 열기: woocommerce/woocommerce 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$data array Order Data array. This is the core order data exposed in APIs since 2.7.0.
$status_transition boolean | array Stores data about status changes so relevant hooks can be fired.

공개 메소드들

메소드 설명
add_order_note ( string $note, integer $is_customer_note, $added_by_user = false ) : integer Adds a note (comment) to the order. Order must exist.
get_address ( string $type = 'billing' ) : array Returns the requested address in raw, non-formatted way.
get_billing_address_1 ( string $context = 'view' ) : string Get billing_address_1.
get_billing_address_2 ( string $context = 'view' ) : string Get billing_address_2.
get_billing_city ( string $context = 'view' ) : string Get billing_city.
get_billing_company ( string $context = 'view' ) : string Get billing_company.
get_billing_country ( string $context = 'view' ) : string Get billing_country.
get_billing_email ( string $context = 'view' ) : string Get billing_email.
get_billing_first_name ( string $context = 'view' ) : string Get billing_first_name.
get_billing_last_name ( string $context = 'view' ) : string Get billing_last_name.
get_billing_phone ( string $context = 'view' ) : string Get billing_phone.
get_billing_postcode ( string $context = 'view' ) : string Get billing_postcode.
get_billing_state ( string $context = 'view' ) : string Get billing_state.
get_cancel_endpoint ( ) : string Helper method to return the cancel endpoint.
get_cancel_order_url ( string $redirect = '' ) : string Generates a URL so that a customer can cancel their (unpaid - pending) order.
get_cancel_order_url_raw ( string $redirect = '' ) : string Generates a raw (unescaped) cancel-order URL for use by payment gateways.
get_cart_hash ( string $context = 'view' ) : string Get cart hash.
get_checkout_order_received_url ( ) : string Generates a URL for the thanks page (order received).
get_checkout_payment_url ( boolean $on_checkout = false ) : string Generates a URL so that a customer can pay for their (unpaid - pending) order. Pass 'true' for the checkout version which doesn't offer gateway choices.
get_created_via ( string $context = 'view' ) : string Get created_via.
get_customer_id ( string $context = 'view' ) : integer Get customer_id.
get_customer_ip_address ( string $context = 'view' ) : string Get customer_ip_address.
get_customer_note ( string $context = 'view' ) : string Get customer_note.
get_customer_order_notes ( ) : array List order notes (public) for the customer.
get_customer_user_agent ( string $context = 'view' ) : string Get customer_user_agent.
get_data ( ) : array Get all class data in array format.
get_date_completed ( string $context = 'view' ) : integer Get date_completed.
get_date_paid ( string $context = 'view' ) : integer Get date_paid.
get_formatted_billing_address ( ) : string Get a formatted billing address for the order.
get_formatted_billing_full_name ( ) : string Get a formatted billing full name.
get_formatted_order_total ( string $tax_display = '', boolean $display_refunded = true ) : string Gets order total - formatted for display.
get_formatted_shipping_address ( ) : string Get a formatted shipping address for the order.
get_formatted_shipping_full_name ( ) : string Get a formatted shipping full name.
get_item_count_refunded ( string $item_type = '' ) : string Gets the count of order items of a certain type that have been refunded.
get_order_key ( string $context = 'view' ) : string Get order key.
get_order_number ( ) : string get_order_number function.
get_payment_method ( string $context = 'view' ) : string Get the payment method.
get_payment_method_title ( string $context = 'view' ) : string Get payment_method_title.
get_qty_refunded_for_item ( integer $item_id, string $item_type = 'line_item' ) : integer Get the refunded amount for a line item.
get_refunds ( ) : array Get order refunds.
get_remaining_refund_amount ( ) : string How much money is left to refund?
get_remaining_refund_items ( ) : integer How many items are left to refund?
get_shipping_address_1 ( string $context = 'view' ) : string Get shipping_address_1.
get_shipping_address_2 ( string $context = 'view' ) : string Get shipping_address_2.
get_shipping_address_map_url ( ) : string Get a formatted shipping address for the order.
get_shipping_city ( string $context = 'view' ) : string Get shipping_city.
get_shipping_company ( string $context = 'view' ) : string Get shipping_company.
get_shipping_country ( string $context = 'view' ) : string Get shipping_country.
get_shipping_first_name ( string $context = 'view' ) : string Get shipping_first_name.
get_shipping_last_name ( string $context = 'view' ) : string Get shipping_last_name.
get_shipping_postcode ( string $context = 'view' ) : string Get shipping_postcode.
get_shipping_state ( string $context = 'view' ) : string Get shipping_state.
get_tax_refunded_for_item ( integer $item_id, integer $tax_id, string $item_type = 'line_item' ) : double Get the refunded amount for a line item.
get_total_qty_refunded ( string $item_type = 'line_item' ) : integer Get the total number of items refunded.
get_total_refunded ( ) : string Get amount already refunded.
get_total_refunded_for_item ( integer $item_id, string $item_type = 'line_item' ) : integer Get the refunded amount for a line item.
get_total_shipping_refunded ( ) : float Get the total shipping refunded.
get_total_tax_refunded ( ) : float Get the total tax refunded.
get_total_tax_refunded_by_rate_id ( integer $rate_id ) : float Get total tax refunded by rate ID.
get_transaction_id ( string $context = 'view' ) : string Get transaction_id.
get_user ( ) : WP_User | false Get the user associated with the order. False for guests.
get_user_id ( string $context = 'view' ) : integer Alias for get_customer_id().
get_view_order_url ( ) : string Generates a URL to view an order from the my account page.
has_cart_hash ( $cart_hash = '' ) : boolean See if order matches cart_hash.
has_downloadable_item ( ) : boolean Returns true if the order contains a downloadable product.
is_download_permitted ( ) : boolean Checks if product download is permitted.
is_editable ( ) : boolean Checks if an order can be edited, specifically for use on the Edit Order screen.
is_paid ( ) : boolean Returns if an order has been paid for based on the order status.
key_is_valid ( mixed $key ) : boolean Check if an order key is valid.
needs_payment ( ) : boolean Checks if an order needs payment, based on status and order total.
needs_shipping_address ( ) : boolean Checks if an order needs display the shipping address, based on shipping method.
payment_complete ( string $transaction_id = '' ) : boolean When a payment is complete this function is called.
save ( ) : integer Save data to the database.
set_billing_address_1 ( string $value ) Set billing_address_1.
set_billing_address_2 ( string $value ) Set billing_address_2.
set_billing_city ( string $value ) Set billing_city.
set_billing_company ( string $value ) Set billing_company.
set_billing_country ( string $value ) Set billing_country.
set_billing_email ( string $value ) Set billing_email.
set_billing_first_name ( string $value ) Set billing_first_name.
set_billing_last_name ( string $value ) Set billing_last_name.
set_billing_phone ( string $value ) Set billing_phone.
set_billing_postcode ( string $value ) Set billing_postcode.
set_billing_state ( string $value ) Set billing_state.
set_cart_hash ( string $value ) Set cart hash.
set_created_via ( string $value ) Set created_via.
set_customer_id ( integer $value ) Set customer_id.
set_customer_ip_address ( string $value ) Set customer_ip_address.
set_customer_note ( string $value ) Set customer_note.
set_customer_user_agent ( string $value ) Set customer_user_agent.
set_date_completed ( string $timestamp ) Set date_completed.
set_date_paid ( string $timestamp ) Set date_paid.
set_order_key ( string $value ) Set order_key.
set_payment_method ( string $payment_method = '' ) Set the payment method.
set_payment_method_title ( string $value ) Set payment_method_title.
set_shipping_address_1 ( string $value ) Set shipping_address_1.
set_shipping_address_2 ( string $value ) Set shipping_address_2.
set_shipping_city ( string $value ) Set shipping_city.
set_shipping_company ( string $value ) Set shipping_company.
set_shipping_country ( string $value ) Set shipping_country.
set_shipping_first_name ( string $value ) Set shipping_first_name.
set_shipping_last_name ( string $value ) Set shipping_last_name.
set_shipping_postcode ( string $value ) Set shipping_postcode.
set_shipping_state ( string $value ) Set shipping_state.
set_status ( string $new_status, string $note = '', boolean $manual_update = false ) Set order status.
set_transaction_id ( string $value ) Set transaction_id.
update_status ( $new_status, $note = '', $manual = false ) : boolean Updates status of order immediately. Order must exist.

보호된 메소드들

메소드 설명
get_address_prop ( string $prop, string $address = 'billing', string $context = 'view' ) : mixed Gets a prop for a getter method.
maybe_set_user_billing_email ( ) Maybe set empty billing email to that of the user who owns the order.
set_address_prop ( string $prop, string $address = 'billing', mixed $value ) Sets a prop for a setter method.
status_transition ( ) Handle the status transition.

메소드 상세

add_order_note() 공개 메소드

Adds a note (comment) to the order. Order must exist.
public add_order_note ( string $note, integer $is_customer_note, $added_by_user = false ) : integer
$note string Note to add.
$is_customer_note integer (default: 0) Is this a note for the customer?
리턴 integer Comment ID.

get_address() 공개 메소드

Note: Merges raw data with get_prop data so changes are returned too.
부터: 2.4.0
public get_address ( string $type = 'billing' ) : array
$type string Billing or shipping. Anything else besides 'billing' will return shipping address.
리턴 array The stored address after filter.

get_address_prop() 보호된 메소드

Gets a prop for a getter method.
부터: 2.7.0
protected get_address_prop ( string $prop, string $address = 'billing', string $context = 'view' ) : mixed
$prop string Name of prop to get.
$address string billing or shipping.
$context string What the value is for. Valid values are view and edit.
리턴 mixed

get_billing_address_1() 공개 메소드

Get billing_address_1.
public get_billing_address_1 ( string $context = 'view' ) : string
$context string
리턴 string

get_billing_address_2() 공개 메소드

Get billing_address_2.
public get_billing_address_2 ( string $context = 'view' ) : string
$context string
리턴 string $value

get_billing_city() 공개 메소드

Get billing_city.
public get_billing_city ( string $context = 'view' ) : string
$context string
리턴 string $value

get_billing_company() 공개 메소드

Get billing_company.
public get_billing_company ( string $context = 'view' ) : string
$context string
리턴 string

get_billing_country() 공개 메소드

Get billing_country.
public get_billing_country ( string $context = 'view' ) : string
$context string
리턴 string

get_billing_email() 공개 메소드

Get billing_email.
public get_billing_email ( string $context = 'view' ) : string
$context string
리턴 string

get_billing_first_name() 공개 메소드

Get billing_first_name.
public get_billing_first_name ( string $context = 'view' ) : string
$context string
리턴 string

get_billing_last_name() 공개 메소드

Get billing_last_name.
public get_billing_last_name ( string $context = 'view' ) : string
$context string
리턴 string

get_billing_phone() 공개 메소드

Get billing_phone.
public get_billing_phone ( string $context = 'view' ) : string
$context string
리턴 string

get_billing_postcode() 공개 메소드

Get billing_postcode.
public get_billing_postcode ( string $context = 'view' ) : string
$context string
리턴 string

get_billing_state() 공개 메소드

Get billing_state.
public get_billing_state ( string $context = 'view' ) : string
$context string
리턴 string

get_cancel_endpoint() 공개 메소드

Helper method to return the cancel endpoint.
public get_cancel_endpoint ( ) : string
리턴 string the cancel endpoint; either the cart page or the home page.

get_cancel_order_url() 공개 메소드

Generates a URL so that a customer can cancel their (unpaid - pending) order.
public get_cancel_order_url ( string $redirect = '' ) : string
$redirect string
리턴 string

get_cancel_order_url_raw() 공개 메소드

Generates a raw (unescaped) cancel-order URL for use by payment gateways.
public get_cancel_order_url_raw ( string $redirect = '' ) : string
$redirect string
리턴 string The unescaped cancel-order URL.

get_cart_hash() 공개 메소드

Get cart hash.
public get_cart_hash ( string $context = 'view' ) : string
$context string
리턴 string

get_checkout_order_received_url() 공개 메소드

Generates a URL for the thanks page (order received).

get_checkout_payment_url() 공개 메소드

Generates a URL so that a customer can pay for their (unpaid - pending) order. Pass 'true' for the checkout version which doesn't offer gateway choices.
public get_checkout_payment_url ( boolean $on_checkout = false ) : string
$on_checkout boolean
리턴 string

get_created_via() 공개 메소드

Get created_via.
public get_created_via ( string $context = 'view' ) : string
$context string
리턴 string

get_customer_id() 공개 메소드

Get customer_id.
public get_customer_id ( string $context = 'view' ) : integer
$context string
리턴 integer

get_customer_ip_address() 공개 메소드

Get customer_ip_address.
public get_customer_ip_address ( string $context = 'view' ) : string
$context string
리턴 string

get_customer_note() 공개 메소드

Get customer_note.
public get_customer_note ( string $context = 'view' ) : string
$context string
리턴 string

get_customer_order_notes() 공개 메소드

List order notes (public) for the customer.
public get_customer_order_notes ( ) : array
리턴 array

get_customer_user_agent() 공개 메소드

Get customer_user_agent.
public get_customer_user_agent ( string $context = 'view' ) : string
$context string
리턴 string

get_data() 공개 메소드

Get all class data in array format.
부터: 2.7.0
public get_data ( ) : array
리턴 array

get_date_completed() 공개 메소드

Get date_completed.
public get_date_completed ( string $context = 'view' ) : integer
$context string
리턴 integer

get_date_paid() 공개 메소드

Get date_paid.
public get_date_paid ( string $context = 'view' ) : integer
$context string
리턴 integer

get_formatted_billing_address() 공개 메소드

Get a formatted billing address for the order.

get_formatted_billing_full_name() 공개 메소드

Get a formatted billing full name.

get_formatted_order_total() 공개 메소드

Gets order total - formatted for display.
public get_formatted_order_total ( string $tax_display = '', boolean $display_refunded = true ) : string
$tax_display string Type of tax display.
$display_refunded boolean If should include refunded value.
리턴 string

get_formatted_shipping_address() 공개 메소드

Get a formatted shipping address for the order.

get_formatted_shipping_full_name() 공개 메소드

Get a formatted shipping full name.

get_item_count_refunded() 공개 메소드

Gets the count of order items of a certain type that have been refunded.
부터: 2.4.0
public get_item_count_refunded ( string $item_type = '' ) : string
$item_type string
리턴 string

get_order_key() 공개 메소드

Get order key.
부터: 2.7.0
public get_order_key ( string $context = 'view' ) : string
$context string
리턴 string

get_order_number() 공개 메소드

Gets the order number for display (by default, order ID).
public get_order_number ( ) : string
리턴 string

get_payment_method() 공개 메소드

Get the payment method.
public get_payment_method ( string $context = 'view' ) : string
$context string
리턴 string

get_payment_method_title() 공개 메소드

Get payment_method_title.
public get_payment_method_title ( string $context = 'view' ) : string
$context string
리턴 string

get_qty_refunded_for_item() 공개 메소드

Get the refunded amount for a line item.
public get_qty_refunded_for_item ( integer $item_id, string $item_type = 'line_item' ) : integer
$item_id integer ID of the item we're checking
$item_type string type of the item we're checking, if not a line_item
리턴 integer

get_refunds() 공개 메소드

Get order refunds.
부터: 2.2
public get_refunds ( ) : array
리턴 array of WC_Order_Refund objects

get_remaining_refund_amount() 공개 메소드

How much money is left to refund?

get_remaining_refund_items() 공개 메소드

How many items are left to refund?

get_shipping_address_1() 공개 메소드

Get shipping_address_1.
public get_shipping_address_1 ( string $context = 'view' ) : string
$context string
리턴 string

get_shipping_address_2() 공개 메소드

Get shipping_address_2.
public get_shipping_address_2 ( string $context = 'view' ) : string
$context string
리턴 string

get_shipping_address_map_url() 공개 메소드

Get a formatted shipping address for the order.

get_shipping_city() 공개 메소드

Get shipping_city.
public get_shipping_city ( string $context = 'view' ) : string
$context string
리턴 string

get_shipping_company() 공개 메소드

Get shipping_company.
public get_shipping_company ( string $context = 'view' ) : string
$context string
리턴 string

get_shipping_country() 공개 메소드

Get shipping_country.
public get_shipping_country ( string $context = 'view' ) : string
$context string
리턴 string

get_shipping_first_name() 공개 메소드

Get shipping_first_name.
public get_shipping_first_name ( string $context = 'view' ) : string
$context string
리턴 string

get_shipping_last_name() 공개 메소드

Get shipping_last_name.
public get_shipping_last_name ( string $context = 'view' ) : string
$context string
리턴 string

get_shipping_postcode() 공개 메소드

Get shipping_postcode.
public get_shipping_postcode ( string $context = 'view' ) : string
$context string
리턴 string

get_shipping_state() 공개 메소드

Get shipping_state.
public get_shipping_state ( string $context = 'view' ) : string
$context string
리턴 string

get_tax_refunded_for_item() 공개 메소드

Get the refunded amount for a line item.
public get_tax_refunded_for_item ( integer $item_id, integer $tax_id, string $item_type = 'line_item' ) : double
$item_id integer ID of the item we're checking
$tax_id integer ID of the tax we're checking
$item_type string type of the item we're checking, if not a line_item
리턴 double

get_total_qty_refunded() 공개 메소드

Get the total number of items refunded.
부터: 2.4.0
public get_total_qty_refunded ( string $item_type = 'line_item' ) : integer
$item_type string type of the item we're checking, if not a line_item
리턴 integer

get_total_refunded() 공개 메소드

Get amount already refunded.
부터: 2.2
public get_total_refunded ( ) : string
리턴 string

get_total_refunded_for_item() 공개 메소드

Get the refunded amount for a line item.
public get_total_refunded_for_item ( integer $item_id, string $item_type = 'line_item' ) : integer
$item_id integer ID of the item we're checking
$item_type string type of the item we're checking, if not a line_item
리턴 integer

get_total_shipping_refunded() 공개 메소드

Get the total shipping refunded.
부터: 2.4

get_total_tax_refunded() 공개 메소드

Get the total tax refunded.
부터: 2.3
public get_total_tax_refunded ( ) : float
리턴 float

get_total_tax_refunded_by_rate_id() 공개 메소드

Get total tax refunded by rate ID.
public get_total_tax_refunded_by_rate_id ( integer $rate_id ) : float
$rate_id integer
리턴 float

get_transaction_id() 공개 메소드

Get transaction_id.
public get_transaction_id ( string $context = 'view' ) : string
$context string
리턴 string

get_user() 공개 메소드

Get the user associated with the order. False for guests.
public get_user ( ) : WP_User | false
리턴 WP_User | false

get_user_id() 공개 메소드

Alias for get_customer_id().
public get_user_id ( string $context = 'view' ) : integer
$context string
리턴 integer

get_view_order_url() 공개 메소드

Generates a URL to view an order from the my account page.
public get_view_order_url ( ) : string
리턴 string

has_cart_hash() 공개 메소드

See if order matches cart_hash.
public has_cart_hash ( $cart_hash = '' ) : boolean
리턴 boolean

has_downloadable_item() 공개 메소드

Returns true if the order contains a downloadable product.
public has_downloadable_item ( ) : boolean
리턴 boolean

is_download_permitted() 공개 메소드

Checks if product download is permitted.
public is_download_permitted ( ) : boolean
리턴 boolean

is_editable() 공개 메소드

Checks if an order can be edited, specifically for use on the Edit Order screen.
public is_editable ( ) : boolean
리턴 boolean

is_paid() 공개 메소드

Returns if an order has been paid for based on the order status.
부터: 2.5.0
public is_paid ( ) : boolean
리턴 boolean

key_is_valid() 공개 메소드

Check if an order key is valid.
public key_is_valid ( mixed $key ) : boolean
$key mixed
리턴 boolean

maybe_set_user_billing_email() 보호된 메소드

Maybe set empty billing email to that of the user who owns the order.

needs_payment() 공개 메소드

Checks if an order needs payment, based on status and order total.
public needs_payment ( ) : boolean
리턴 boolean

needs_shipping_address() 공개 메소드

Checks if an order needs display the shipping address, based on shipping method.
public needs_shipping_address ( ) : boolean
리턴 boolean

payment_complete() 공개 메소드

Most of the time this should mark an order as 'processing' so that admin can process/post the items. If the cart contains only downloadable items then the order is 'completed' since the admin needs to take no action. Stock levels are reduced at this point. Sales are also recorded for products. Finally, record the date of payment. Order must exist.
public payment_complete ( string $transaction_id = '' ) : boolean
$transaction_id string Optional transaction id to store in post meta.
리턴 boolean success

save() 공개 메소드

Save data to the database.
부터: 2.7.0
public save ( ) : integer
리턴 integer order ID

set_address_prop() 보호된 메소드

Sets a prop for a setter method.
부터: 2.7.0
protected set_address_prop ( string $prop, string $address = 'billing', mixed $value )
$prop string Name of prop to set.
$address string Name of address to set. billing or shipping.
$value mixed Value of the prop.

set_billing_address_1() 공개 메소드

Set billing_address_1.
public set_billing_address_1 ( string $value )
$value string

set_billing_address_2() 공개 메소드

Set billing_address_2.
public set_billing_address_2 ( string $value )
$value string

set_billing_city() 공개 메소드

Set billing_city.
public set_billing_city ( string $value )
$value string

set_billing_company() 공개 메소드

Set billing_company.
public set_billing_company ( string $value )
$value string

set_billing_country() 공개 메소드

Set billing_country.
public set_billing_country ( string $value )
$value string

set_billing_email() 공개 메소드

Set billing_email.
public set_billing_email ( string $value )
$value string

set_billing_first_name() 공개 메소드

Set billing_first_name.
public set_billing_first_name ( string $value )
$value string

set_billing_last_name() 공개 메소드

Set billing_last_name.
public set_billing_last_name ( string $value )
$value string

set_billing_phone() 공개 메소드

Set billing_phone.
public set_billing_phone ( string $value )
$value string

set_billing_postcode() 공개 메소드

Set billing_postcode.
public set_billing_postcode ( string $value )
$value string

set_billing_state() 공개 메소드

Set billing_state.
public set_billing_state ( string $value )
$value string

set_cart_hash() 공개 메소드

Set cart hash.
public set_cart_hash ( string $value )
$value string

set_created_via() 공개 메소드

Set created_via.
public set_created_via ( string $value )
$value string

set_customer_id() 공개 메소드

Set customer_id.
public set_customer_id ( integer $value )
$value integer

set_customer_ip_address() 공개 메소드

Set customer_ip_address.
public set_customer_ip_address ( string $value )
$value string

set_customer_note() 공개 메소드

Set customer_note.
public set_customer_note ( string $value )
$value string

set_customer_user_agent() 공개 메소드

Set customer_user_agent.
public set_customer_user_agent ( string $value )
$value string

set_date_completed() 공개 메소드

Set date_completed.
public set_date_completed ( string $timestamp )
$timestamp string

set_date_paid() 공개 메소드

Set date_paid.
public set_date_paid ( string $timestamp )
$timestamp string

set_order_key() 공개 메소드

Set order_key.
public set_order_key ( string $value )
$value string Max length 20 chars.

set_payment_method() 공개 메소드

Set the payment method.
public set_payment_method ( string $payment_method = '' )
$payment_method string Supports WC_Payment_Gateway for bw compatibility with < 2.7

set_payment_method_title() 공개 메소드

Set payment_method_title.
public set_payment_method_title ( string $value )
$value string

set_shipping_address_1() 공개 메소드

Set shipping_address_1.
public set_shipping_address_1 ( string $value )
$value string

set_shipping_address_2() 공개 메소드

Set shipping_address_2.
public set_shipping_address_2 ( string $value )
$value string

set_shipping_city() 공개 메소드

Set shipping_city.
public set_shipping_city ( string $value )
$value string

set_shipping_company() 공개 메소드

Set shipping_company.
public set_shipping_company ( string $value )
$value string

set_shipping_country() 공개 메소드

Set shipping_country.
public set_shipping_country ( string $value )
$value string

set_shipping_first_name() 공개 메소드

Set shipping_first_name.
public set_shipping_first_name ( string $value )
$value string

set_shipping_last_name() 공개 메소드

Set shipping_last_name.
public set_shipping_last_name ( string $value )
$value string

set_shipping_postcode() 공개 메소드

Set shipping_postcode.
public set_shipping_postcode ( string $value )
$value string

set_shipping_state() 공개 메소드

Set shipping_state.
public set_shipping_state ( string $value )
$value string

set_status() 공개 메소드

Set order status.
부터: 2.7.0
public set_status ( string $new_status, string $note = '', boolean $manual_update = false )
$new_status string Status to change the order to. No internal wc- prefix is required.
$note string (default: '') Optional note to add.
$manual_update boolean is this a manual order status change?

set_transaction_id() 공개 메소드

Set transaction_id.
public set_transaction_id ( string $value )
$value string

status_transition() 보호된 메소드

Handle the status transition.
protected status_transition ( )

update_status() 공개 메소드

Updates status of order immediately. Order must exist.
public update_status ( $new_status, $note = '', $manual = false ) : boolean
리턴 boolean success

프로퍼티 상세

$data 보호되어 있는 프로퍼티

Order Data array. This is the core order data exposed in APIs since 2.7.0.
부터: 2.7.0
protected array $data
리턴 array

$status_transition 보호되어 있는 프로퍼티

Stores data about status changes so relevant hooks can be fired.
protected bool|array $status_transition
리턴 boolean | array