Add props to internal meta keys so that they are filtered.

This commit is contained in:
Vedanshu Jain 2023-07-13 18:41:59 +05:30
parent 098d0f2528
commit cbfd4ae68c
1 changed files with 12 additions and 0 deletions

View File

@ -11,6 +11,18 @@ namespace Automattic\WooCommerce\Internal\DataStores\Orders;
*/
class OrdersTableRefundDataStore extends OrdersTableDataStore {
/**
* Data stored in meta keys, but not considered "meta" for refund.
*
* @var string[]
*/
protected $internal_meta_keys = array(
'_refund_amount',
'_refund_reason',
'_refunded_by',
'_refunded_payment',
);
/**
* We do not have and use all the getters and setters from OrderTableDataStore, so we only select the props we actually need.
*