WC_Gateway_Paypal::get_paypal_icon_imageprotectedWC 1.0

Get PayPal icon image.

Method of the class: WC_Gateway_Paypal{}

Hooks from the method

Returns

String. The PayPal icon image.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_paypal_icon_image();

WC_Gateway_Paypal::get_paypal_icon_image() code WC 10.7.0

protected function get_paypal_icon_image() {
	$icon = WC_HTTPS::force_https_url( WC()->plugin_url() . '/assets/images/paypal.png' );

	/**
	 * Filters the PayPal icon image.
	 *
	 * @param string $icon The PayPal icon image.
	 * @return string The PayPal icon image.
	 * @since 10.6.0
	 */
	return apply_filters( 'woocommerce_paypal_icon', $icon );
}