woocommerce_gateway_method_title
Filter the method title.
Usage
add_filter( 'woocommerce_gateway_method_title', 'wp_kama_woocommerce_gateway_method_title_filter', 10, 2 ); /** * Function for `woocommerce_gateway_method_title` filter-hook. * * @param string $title Method title. * @param WC_Payment_Gateway $that Payment gateway instance. * * @return string */ function wp_kama_woocommerce_gateway_method_title_filter( $title, $that ){ // filter... return $title; }
- $title(string)
- Method title.
- $that(WC_Payment_Gateway)
- Payment gateway instance.
Changelog
Since 2.6.0 | Introduced. |
Where the hook is called
woocommerce_gateway_method_title
woocommerce/includes/abstracts/abstract-wc-payment-gateway.php 183
return apply_filters( 'woocommerce_gateway_method_title', $this->method_title, $this );