WordPress at Your Fingertips
function is not described

WC_Payment_Gateways::get_payment_gateway_ids() public WC 2.6.0

Get array of registered gateway ids

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

Code of WC_Payment_Gateways::get_payment_gateway_ids() WC 5.9.0

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