Automattic\WooCommerce\Internal\Admin\Settings\PaymentProviders
PaymentGateway::get_title()
Get the provider title of the payment gateway.
This is the intended gateway title to use throughout the WC admin. It should be short.
Note: We don't allow HTML tags in the title. All HTML tags will be stripped, including their contents.
Метод класса: PaymentGateway{}
Хуков нет.
Возвращает
Строку
. The provider title of the payment gateway.
Использование
$PaymentGateway = new PaymentGateway(); $PaymentGateway->get_title( $payment_gateway ): string;
- $payment_gateway(WC_Payment_Gateway) (обязательный)
- The payment gateway object.
Код PaymentGateway::get_title() PaymentGateway::get title WC 9.6.1
public function get_title( WC_Payment_Gateway $payment_gateway ): string { $title = wp_strip_all_tags( html_entity_decode( $payment_gateway->get_method_title() ), true ); // Truncate the title. return Utils::truncate_with_words( $title, 75 ); }