WC_Gateway_Paypal::get_iconpublicWC 1.0

Get gateway icon.

Method of the class: WC_Gateway_Paypal{}

Hooks from the method

Returns

String.

Usage

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

WC_Gateway_Paypal::get_icon() code WC 10.7.0

public function get_icon() {
	$icon      = $this->get_paypal_icon_image();
	$icon_html = '<img src="' . esc_attr( $icon ) . '" alt="' . esc_attr__( 'PayPal acceptance mark', 'woocommerce' ) . '" />';

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