WordPress at Your Fingertips
function is not described

WC_Payment_Gateway::get_icon() public WC 1.0

Return the gateway's icon.

{} It's a method of the class: WC_Payment_Gateway{}

Hooks from the method
Return

String.

Usage

$WC_Payment_Gateway = new WC_Payment_Gateway();
$WC_Payment_Gateway->get_icon();

Code of WC_Payment_Gateway::get_icon() WC 5.5.2

<?php
public function get_icon() {

	$icon = $this->icon ? '<img src="' . WC_HTTPS::force_https_url( $this->icon ) . '" alt="' . esc_attr( $this->get_title() ) . '" />' : '';

	return apply_filters( 'woocommerce_gateway_icon', $icon, $this->id );
}