WC_Payment_Gateways::get_payment_gateway_ids()publicWC 2.6.0

Get array of registered gateway ids

Method of the class: WC_Payment_Gateways{}

No Hooks.

Return

Array. of strings

Usage

$WC_Payment_Gateways = new WC_Payment_Gateways();
$WC_Payment_Gateways->get_payment_gateway_ids();

Changelog

Since 2.6.0 Introduced.

WC_Payment_Gateways::get_payment_gateway_ids() code WC 8.7.0

public function get_payment_gateway_ids() {
	return wp_list_pluck( $this->payment_gateways, 'id' );
}