WC_Payment_Gateway::get_description()
Return the gateway's description.
Метод класса: WC_Payment_Gateway{}
Хуки из метода
Возвращает
Строку
.
Использование
$WC_Payment_Gateway = new WC_Payment_Gateway(); $WC_Payment_Gateway->get_description();
Код WC_Payment_Gateway::get_description() WC Payment Gateway::get description WC 9.5.1
public function get_description() { /** * Filters the gateway description. * * Descriptions can be overridden by extending this method or through the use of `woocommerce_gateway_description` * To avoid breaking custom HTML that may be returned we cannot enforce KSES at render time, so we run it here. * * @since 1.5.8 * @since 9.0.0 wp_kses_post() is used to sanitize the description before passing it to the filter. * @param string $description Gateway description. * @param string $id Gateway ID. * @return string */ return apply_filters( 'woocommerce_gateway_description', wp_kses_post( $this->description ), $this->id ); }