woocommerce_gateway_icon

woocommerce_gateway_icon

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_gateway_icon') is found 2 times:

  • /includes/abstracts/abstract-wc-payment-gateway.php line 389
    		 * @param string $icon Gateway icon.
    		 * @param string $id Gateway ID.
    		 * @return string
    		 */
    		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.