프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$data_store_name | string | Which data store to load. | |
$extra_data | array | Stores product data. |
메소드 | 설명 | |
---|---|---|
__construct ( integer | object | WC_Order $read ) | Extend the abstract _data properties and then read the order object. | |
__get ( string $key ) : mixed | Magic __get method for backwards compatibility. | |
get_amount ( string $context = 'view' ) : integer | float | Get refunded amount. | |
get_formatted_refund_amount ( ) : string | Get formatted refunded amount. | |
get_post_title ( ) | Get a title for the new post type. | |
get_reason ( string $context = 'view' ) : integer | float | Get refund reason. | |
get_refund ( integer $id ) : boolean | Gets an refund from the database. | |
get_refund_amount ( ) : integer | float | Get refund amount. | |
get_refund_reason ( ) : integer | float | Get refund reason. | |
get_refunded_by ( string $context = 'view' ) : integer | Get ID of user who did the refund. | |
get_status ( string $context = 'view' ) : string | Get status - always completed for refunds. | |
get_type ( ) : string | Get internal type (post type.) | |
set_amount ( string $value ) | Set refunded amount. | |
set_reason ( string $value ) | Set refund reason. | |
set_refunded_by ( integer $value ) | Set refunded by. |
메소드 | 설명 | |
---|---|---|
get_hook_prefix ( ) : string | Prefix for action and filter hooks on data. |
public __construct ( integer | object | WC_Order $read ) | ||
$read | integer | object | WC_Order | Order to init. |
public get_formatted_refund_amount ( ) : string | ||
리턴 | string |
protected get_hook_prefix ( ) : string | ||
리턴 | string |
public get_refund ( integer $id ) : boolean | ||
$id | integer | (default: 0). |
리턴 | boolean |
public get_refund_amount ( ) : integer | float | ||
리턴 | integer | float |
public get_refund_reason ( ) : integer | float | ||
리턴 | integer | float |
public get_refunded_by ( string $context = 'view' ) : integer | ||
$context | string | |
리턴 | integer |
public get_status ( string $context = 'view' ) : string | ||
$context | string | |
리턴 | string |