woocommerce_gateway_title
Filter the gateway title.
Usage
add_filter( 'woocommerce_gateway_title', 'wp_kama_woocommerce_gateway_title_filter', 10, 2 ); /** * Function for `woocommerce_gateway_title` filter-hook. * * @param string $title Gateway title. * @param string $id Gateway ID. * * @return string */ function wp_kama_woocommerce_gateway_title_filter( $title, $id ){ // filter... return $title; }
- $title(string)
- Gateway title.
- $id(string)
- Gateway ID.
Changelog
Since 1.5.8 | Introduced. |
Where the hook is called
woocommerce_gateway_title
woocommerce/includes/abstracts/abstract-wc-payment-gateway.php 350
return apply_filters( 'woocommerce_gateway_title', $title, $this->id );