WooCommerce PayPal Here Payment Gateway icon
eCommerce & WooCommerce

WooCommerce PayPal Here Payment Gateway hooks reference

WooCommerce PayPal Here Payment Gateway 1.1.3 has 0 actions and 8 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Change a value WooCommerce PayPal Here Payment Gateway is about to use
add_filter( 'wc_gateway_paypal_here_display_meta_box', function( $display_metabox, $id, $definition, $current_screen ) {
	// Change $display_metabox here.
	return $display_metabox;
}, 10, 4 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • includes/Gateway.php line 515
    /**
     * Filters the order invoice data that is sent with the sideload request.
     */
    apply_filters( "wc_{$this->get_id()}_order_invoice_data", array( 'paymentTerms' => 'DueOnReceipt', 'currencyCode' => $order->get_currency(), 'number' => $this->get_invoice_number( $order ), 'payerEmail' => $order->get_billing_email(), 'itemList' => array( 'item' => array( array( 'name' => $this->get_order( $order )->description, 'description' => '', 'quantity' => '1', 'unitPrice' => $order->get_total( 'edit' ), ), ), ), ), $order );
  • includes/Gateway.php line 431
    /**
     * Filters the accepted payment types for the PayPal Here Sideloader.
     */
    apply_filters( "wc_{$this->get_id()}_sideload_payments_accepted", array( 'cash', 'card', 'paypal', ), $this );
  • includes/Gateway.php line 753
    /**
     * Filters the endpoint used for the sideloader API.
     */
    apply_filters( "wc_{$this->get_id()}_sideload_url_endpoint", $endpoint, $detected_android );
  • includes/Gateway.php line 461
    /**
     * Filters the parameters that are used to build the sideload URL.
     */
    apply_filters( "wc_{$this->get_id()}_sideload_url_params", array( 'accepted' => implode( ',', $this->get_sideload_payments_accepted() ), 'returnUrl' => urlencode( add_query_arg( $this->get_return_url_params( $order ), $this->get_transaction_response_handler_url() ) ), 'as' => 'b64', 'step' => 'choosePayment', 'invoice' => base64_encode( json_encode( $this->generate_invoice( $order ) ) ), ), $order );
  • includes/Gateway.php line 729
    /**
     * Filters the URL protocol to allow the sideload URLs to send to other apps
     * that may implement the PayPal Here API.
     */
    apply_filters( "wc_{$this->get_id()}_sideload_url_protocol", self::PROTOCOL );
  • includes/Admin/Meta_Boxes.php line 116
    /**
     * Filters whether or not to display a metabox on the current admin page.
     */
    apply_filters( 'wc_gateway_paypal_here_display_meta_box', $display_metabox, $id, $definition, $current_screen );
  • includes/Admin/Meta_Boxes/Order_Data.php line 405
    /**
     * Filters the admin billing fields.
     */
    apply_filters( 'woocommerce_admin_billing_fields', array( 'first_name' => array( 'label' => __( 'First name', 'woocommerce-gateway-paypal-here' ), 'show' => false, 'show_above' => true, ), 'last_name' => array( 'label' => __( 'Last name', 'woocommerce-gateway-paypal-here' ), 'show' => false, 'show_above' => true, ), 'email' => array( 'label' => __( 'Email address', 'woocommerce-gateway-paypal-here' ), 'show_above' => true, ), 'phone' => array( ... );
  • includes/Admin/Meta_Boxes/Order_Data.php line 487
    /**
     * Filters the admin shipping fields.
     */
    apply_filters( 'woocommerce_admin_shipping_fields', array( 'first_name' => array( 'label' => __( 'First name', 'woocommerce-gateway-paypal-here' ), 'show' => false, ), 'last_name' => array( 'label' => __( 'Last name', 'woocommerce-gateway-paypal-here' ), 'show' => false, ), 'company' => array( 'label' => __( 'Company', 'woocommerce-gateway-paypal-here' ), 'show' => false, ), 'address_1' => array( 'label' => __( 'Address line 1', 'woocommerce-gat... );

Generated from WooCommerce PayPal Here Payment Gateway's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Done for you

Rather have it built for you?

Tell us what should change and we’ll write and test the code using these hooks.

Plugin customisation

from $149

New features or changed behaviour, without editing the plugin’s files.

  • Built as a companion plugin, so updates never wipe it
  • Exact quote before we start
  • Tested on staging, then deployed

Typical turnaround: 3–7 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Can't find the right hook?

We can build the customisation for you. Describe what you need: