Newsletter
Are you interested in receiving the latest news about the QuickPay module? Sign up to right now to keep yourself updated.

Need WooCommerce assistance?

Perfect Solution ApS offers extended support on any WooCommerce QuickPay related questions. We can help you optimizing, customizing or setting up your webshop.

Send us an email with more information about you and your website to get a non-binding offer.


Prices start from DKK 400,-

Need WooCommerce assistance?

Action & Filters


Introduction

Hooks are provided by WordPress, WooCommerce and WooCommerce QuickPay to allow your plugin or theme to ‘hook into’ the code; that is, to call functions in your plugin at specific times, and thereby set your plugin in motion. There are two kinds of hooks:

  1. Actions: Actions are the hooks that the WordPress core launches at specific points during execution, or when specific events occur.
  2. Filters: Filters are the hooks that WordPress launches to modify text of various types before adding it to the database or sending it to the browser screen.

Hooks

Hook Type File(s)
woocommerce_quickpay_accepted_callback action woocommerce-quickpay.php
woocommerce_quickpay_accepted_callback_status_{$state} action woocommerce-quickpay.php
woocommerce_quickpay_cardtypelock_{$payment_method} filter woocommerce-quickpay-api-transaction.php
woocommerce_quickpay_callback_args filter woocommerce-quickpay-helper.php
woocommerce_quickpay_checkout_gateway_icon_url filter woocommerce-quickpay.php
woocommerce_quickpay_currency filter woocommerce-quickpay.php
woocommerce_quickpay_language filter woocommerce-quickpay.php
woocommerce_quickpay_load_instances filter woocommerce-quickpay.php
woocommerce_quickpay_loaded action woocommerce-quickpay.php
woocommerce_quickpay_is_request_to_change_payment action woocommerce-quickpay-base-order.php
woocommerce_quickpay_order_number_for_api action woocommerce-quickpay-base-order.php
woocommerce_quickpay_settings_table_before action woocommerce-quickpay.php
woocommerce_quickpay_settings_table_after action woocommerce-quickpay.php
woocommerce_quickpay_transaction_link_params filter woocommerce-quickpay-api-transaction.php
woocommerce_quickpay_transaction_cache_enabled filter woocommerce-quickpay-api-transaction.php
woocommerce_quickpay_transaction_cache_expiration filter woocommerce-quickpay-api-transaction.php
woocommerce_quickpay_transaction_fee_data filter woocommerce-quickpay-base-order.php
woocommerce_quickpay_transaction_params_basket filter woocommerce-quickpay-base-order.php
woocommerce_quickpay_transaction_params_invoice filter woocommerce-quickpay-base-order.php
woocommerce_quickpay_transaction_params_shipping filter woocommerce-quickpay-base-order.php
woocommerce_quickpay_transaction_params_shipping_row filter woocommerce-quickpay-base-order.php
woocommerce_quickpay_transaction_params_shopsystem filter woocommerce-quickpay-base-order.php
woocommerce_quickpay_transaction_params_variables filter woocommerce-quickpay-base-order.php

How to use?

The "Code Examples" section provides a few snippets showing how to use hooks in your code.