woocommerce_gateway_icon

woocommerce_gateway_icon

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_gateway_icon') is found 2 times:

  • /includes/abstracts/abstract-wc-payment-gateway.php line 400
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
         * @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 209
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
        }
     
        $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.