WC_Gateway_Paypal::get_icon
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() 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 );
}