Abstract_WC_Order_Data_Store_CPT::get_payment_token_ids()publicWC 1.0

Get token ids for an order.

Method of the class: Abstract_WC_Order_Data_Store_CPT{}

No Hooks.

Return

Array.

Usage

$Abstract_WC_Order_Data_Store_CPT = new Abstract_WC_Order_Data_Store_CPT();
$Abstract_WC_Order_Data_Store_CPT->get_payment_token_ids( $order );
$order(WC_Order) (required)
Order object.

Abstract_WC_Order_Data_Store_CPT::get_payment_token_ids() code WC 9.3.3

public function get_payment_token_ids( $order ) {
	$token_ids = array_filter( (array) get_post_meta( $order->get_id(), '_payment_tokens', true ) );
	return $token_ids;
}