get_payment_gateway_ids method

This commit is contained in:
Mike Jolley 2016-05-26 15:46:14 +01:00
parent 690cd0804b
commit 7d6992c1d1
1 changed files with 9 additions and 2 deletions

View File

@ -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.
*