woocommerce_gateway_icon

woocommerce_gateway_icon

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_gateway_icon') is found 2 times:

  • /includes/abstracts/abstract-wc-payment-gateway.php line 330
    	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 );
    	}
    
    	/**
    	 * Return the gateway's pay button ID.
    	 *
    	 * @since 3.9.0
    
  • /includes/gateways/paypal/class-wc-gateway-paypal.php line 202
    		}
    
    		$icon_html .= sprintf( '<a href="%1$s" class="about_paypal" onclick="javascript:window.open(\'%1$s\',\'WIPaypal\',\'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=1060, height=700\'); return false;">' . esc_attr__( 'What is PayPal?', 'woocommerce' ) . '</a>', esc_url( $this->get_icon_url( $base_country ) ) );
    
    		return apply_filters( 'woocommerce_gateway_icon', $icon_html, $this->id );
    	}
    
    	/**
    	 * Get the link for an icon based on country.
    	 *
    	 * @param  string $country Country two letter code.