WC_Payment_Gateway::get_icon()
Return the gateway's icon.
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();
WC_Payment_Gateway::get_icon() WC Payment Gateway::get icon code WC 8.3.0
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 ); }