get_payment_gateway_ids method
This commit is contained in:
parent
690cd0804b
commit
7d6992c1d1
|
@ -119,8 +119,6 @@ class WC_Payment_Gateways {
|
|||
|
||||
/**
|
||||
* Get gateways.
|
||||
*
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function payment_gateways() {
|
||||
|
@ -135,6 +133,15 @@ class WC_Payment_Gateways {
|
|||
return $_available_gateways;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get array of registered gateway ids
|
||||
* @since 2.6.0
|
||||
* @return array of strings
|
||||
*/
|
||||
public function get_payment_gateway_ids() {
|
||||
return wp_list_pluck( $this->payment_gateways, 'id' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get available gateways.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue