WordPress at Your Fingertips
function is not described

Abstract_WC_Order_Data_Store_CPT::get_payment_token_ids() public WC 1.0

Get token ids for an order.

{} It's a 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.

Code of Abstract_WC_Order_Data_Store_CPT::get_payment_token_ids() WC 5.6.0

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