PHP Class WC_Order_Refund_Data_Store_CPT

Author: WooThemes
Inheritance: extends Abstract_WC_Order_Data_Store_CPT, implements WC_Object_Data_Store_Interface, implements WC_Order_Refund_Data_Store_Interface
Show file Open project: woocommerce/woocommerce

Protected Properties

Property Type Description
$internal_meta_keys array Data stored in meta keys, but not considered "meta" for an order.

Protected Methods

Method Description
get_post_title ( ) : string Get a title for the new post type.
read_order_data ( &$refund, object $post_object ) Read refund data. Can be overridden by child classes to load other props.
update_post_meta ( &$refund ) Helper method that updates all the post meta for an order based on it's settings in the WC_Order class.

Method Details

get_post_title() protected method

Get a title for the new post type.
protected get_post_title ( ) : string
return string

read_order_data() protected method

Read refund data. Can be overridden by child classes to load other props.
Since: 2.7.0
protected read_order_data ( &$refund, object $post_object )
$post_object object

update_post_meta() protected method

Helper method that updates all the post meta for an order based on it's settings in the WC_Order class.
Since: 2.7.0
protected update_post_meta ( &$refund )

Property Details

$internal_meta_keys protected property

Data stored in meta keys, but not considered "meta" for an order.
Since: 2.7.0
protected array $internal_meta_keys
return array