WC_Payment_Gateway::get_title
Return the gateway's title.
Метод класса: WC_Payment_Gateway{}
Хуки из метода
Возвращает
Строку.
Использование
$WC_Payment_Gateway = new WC_Payment_Gateway(); $WC_Payment_Gateway->get_title();
Код WC_Payment_Gateway::get_title() WC Payment Gateway::get title WC 10.3.4
public function get_title() {
$title = wc_get_container()->get( HtmlSanitizer::class )->sanitize( (string) $this->title, HtmlSanitizer::LOW_HTML_BALANCED_TAGS_NO_LINKS );
/**
* Filter the gateway title.
*
* @since 1.5.8
* @param string $title Gateway title.
* @param string $id Gateway ID.
* @return string
*/
return apply_filters( 'woocommerce_gateway_title', $title, $this->id );
}