PeachPay 1.121.9 has 35 actions and 66 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.
// Run your own code when PeachPay fires an action
add_action( 'pp_checkout_after_checkout_page_button_html', function() {
// Your code runs here.
}, 10, 1 );
// Change a value PeachPay is about to use
add_filter( 'pp_checkout_checkout_page_button_args', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );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.
Changes by version
1.121.7 → 1.121.8 · Nov 18, 2026 · 0 added, 0 removed
No hooks were added or removed in this release.
All hooks
-
/** * Perform action after the PeachPay express checkout button is rendered on the * checkout page. */ do_action( 'pp_checkout_after_checkout_page_button_html' ); -
/** * Perform action before the PeachPay express checkout button is rendered on * the checkout page. */ do_action( 'pp_checkout_before_checkout_page_button_html' ); -
/** * Customize the PeachPay express checkout button in the mini cart. */ apply_filters( 'pp_checkout_checkout_page_button_args', array( 'text' => peachpay_get_settings_option( 'peachpay_express_checkout_button', 'peachpay_button_text', __( 'Express Checkout', 'peachpay-for-woocommerce' ) ), 'text_color' => peachpay_get_settings_option( 'peachpay_express_checkout_branding', 'button_text_color', PEACHPAY_DEFAULT_TEXT_COLOR ), 'background_color' => peachpay_get_settings_option( 'peachpay_express_checkout_branding', 'button_... ); -
/** * Builds an array of different cart calculations for a particular root cart. * Allows for subscription recurring carts to be calculated and loosely * coupled. */ apply_filters( 'peachpay_calculate_carts', array( '0' => peachpay_build_cart_response( '0', WC()->cart, $calculated_shipping_packages ) ) ); -
/** * Builds a record of gift cards and how much each gift card was applied. */ apply_filters( 'peachpay_cart_applied_gift_cards_record', $record, $cart ); -
/** * Filters stock status for non wc inventory plugin support. */ apply_filters( 'peachpay_product_stock_status', $product->get_stock_status(), $product_id ); -
/** * Perform action after the PeachPay express checkout button is rendered on the * cart page. */ do_action( 'pp_checkout_after_cart_page_button_html' ); -
/** * Perform action after the PeachPay express checkout button is rendered in the * mini cart. */ do_action( 'pp_checkout_after_mini_cart_button_html' ); -
/** * Perform action after the PeachPay express checkout button is rendered on the * product page. */ do_action( 'pp_checkout_after_product_page_button_html' ); -
/** * Perform action before the PeachPay express checkout button is rendered on * the cart page. */ do_action( 'pp_checkout_before_cart_page_button_html' ); -
/** * Perform action before the PeachPay express checkout button is rendered in * the mini cart. */ do_action( 'pp_checkout_before_mini_cart_button_html' ); -
/** * Perform action before the PeachPay express checkout button is rendered on * the product page. */ do_action( 'pp_checkout_before_product_page_button_html' ); -
/** * Allow for customizing the data sent to the frontend for the PeachPay express * checkout button. */ apply_filters( 'pp_checkout_button_data', array( 'add_to_cart_url' => WC_AJAX::get_endpoint( 'add-to-cart' ), 'express_checkout_url' => pp_checkout_permalink(), 'express_checkout_fragment' => pp_checkout_iframe_container(), 'express_checkout_embeds_cart_calculation_response' => pp_checkout_should_embed_cart_calculation_response(), 'translations' => array( 'add_product_fail' => __( 'Adding the product to the cart failed. Please try agai... ); -
/** * Customize the PeachPay express checkout button on the cart page. */ apply_filters( 'pp_checkout_cart_page_button_args', array( 'text' => $text, 'text_color' => $text_color, 'background_color' => $background_color, 'icon_class' => $icon, 'effect_class' => $effect, 'border_radius' => $border_radius, 'width' => $width, 'custom_styles' => $custom_styles, 'display_available_payment_icons' => $display_available_payment_icons, 'custom_attributes' => array( 'href' => pp_checkout_permalink(), ), ) ); -
/** * Filter whether the PeachPay express checkout button should be hidden on the * cart page. */ apply_filters( 'pp_checkout_cart_page_button_hide', false ); -
/** * Filter whether the PeachPay express checkout button should be hidden on the * product page. */ apply_filters( 'pp_checkout_checkout_page_button_hide', false ); -
/** * Filter whether Express Checkout should embed the initial cart calculation * response. */ apply_filters( 'pp_checkout_embed_cart_calculation_response', false ); -
/** * Allows enqueuing of custom Express Checkout scripts and styles. */ do_action( 'pp_checkout_enqueue_scripts' ); -
/** * Customize the PeachPay express checkout floating button */ apply_filters( 'pp_checkout_floating_button_args', array( 'icon_class' => peachpay_get_settings_option( 'peachpay_express_checkout_button', 'floating_button_icon', 'pp-icon-lock' ), 'effect_class' => peachpay_get_settings_option( 'peachpay_express_checkout_button', 'button_effect', 'none' ), 'text_color' => peachpay_get_settings_option( 'peachpay_express_checkout_branding', 'button_text_color', PEACHPAY_DEFAULT_TEXT_COLOR ), 'background_color' ... ); -
/** * Filter whether the PeachPay express checkout button should hide the floating * button. */ apply_filters( 'pp_checkout_floating_button_hide', false ); -
/** * General filter on form fields. PeachPay Express Checkout filter equivalent * of `woocommerce_form_field`. */ apply_filters( 'pp_checkout_form_field', $field, $key, $args, $value ); -
/** * Filter by type. PeachPay Express Checkout filter equivalent of * `woocommerce_form_field_{$type}`. */ apply_filters( "pp_checkout_form_field_{$args['type']}", $field, $key, $args, $value ); -
/** * Allow field args to be filtered. PeachPay Express Checkout filter equivalent * of 'woocommerce_form_field_args'. */ apply_filters( 'pp_checkout_form_field_args', $args, $key, $value ); -
/** * Customize the PeachPay express checkout button in the mini cart. */ apply_filters( 'pp_checkout_mini_cart_button_args', array( 'text' => peachpay_get_settings_option( 'peachpay_express_checkout_button', 'peachpay_button_text', __( 'Express Checkout', 'peachpay-for-woocommerce' ) ), 'text_color' => peachpay_get_settings_option( 'peachpay_express_checkout_branding', 'button_text_color', PEACHPAY_DEFAULT_TEXT_COLOR ), 'background_color' => peachpay_get_settings_option( 'peachpay_express_checkout_branding', 'button_... ); -
/** * Filter whether the PeachPay express checkout button should be hidden on the * product page. */ apply_filters( 'pp_checkout_mini_cart_button_hide', false ); -
/** * Fires after the PeachPay Express Checkout WordPress page is added. */ do_action( 'pp_checkout_page_added' ); -
/** * Fires after the PeachPay Express Checkout WordPress page is removed. */ do_action( 'pp_checkout_page_removed' ); -
/** * Customize the PeachPay express checkout button on the product page. */ apply_filters( 'pp_checkout_product_page_button_args', $initial_args ); -
/** * Filter whether the PeachPay express checkout button should be hidden on the * product page. */ apply_filters( 'pp_checkout_product_page_button_hide', false ); -
/** * Filter the Express Checkout shipping zone count sent to the modal. */ apply_filters( 'pp_checkout_shipping_zone_count', $shipping_zone_count ); -
/** * Filter whether Express Checkout should remove nonessential default wp_head * callbacks. */ apply_filters( 'pp_checkout_suppress_nonessential_wp_head', true ); -
/** * Allow the generation of custom field types on the settings screen. */ apply_filters( "woocommerce_generate_{$type}_html", '', $k, $v, $this ); -
apply_filters( 'woocommerce_gateway_icon', $icon, $this->id ); -
apply_filters( "woocommerce_settings_api_sanitized_fields_{$this->id}", $this->settings ); -
do_action( 'peachpay_register_addons', $late ); -
apply_filters( 'peachpay_register_feature', array( 'native_checkout' => array( 'enabled' => true, 'metadata' => array( 'create_transaction_url' => WC_AJAX::get_endpoint( 'pp-create-transaction' ), 'update_transaction_url' => WC_AJAX::get_endpoint( 'pp-update-transaction' ), ), ), ) ); -
apply_filters( 'woocommerce_get_return_url', $return_url, $order ); -
do_action( 'breeze_clear_all_cache' ); -
apply_filters( 'peachpay_addon_recommendations_payload', $payload, $evidence, $recommendations, $this ); -
do_action( 'peachpay_admin_add_payment_setting_section' ); -
do_action( "peachpay_admin_section_{$section}" ); -
do_action( 'peachpay_booster_module_init' ); -
apply_filters( 'peachpay_cart_page_line_item', $pp_cart_item, $wc_line_item ); -
do_action( 'peachpay_check_apple_pay_domain' ); -
peachpay_convesiopay_accelerated_checkout_supported_product_types
filter Copy link Customise this hookapply_filters( 'peachpay_convesiopay_accelerated_checkout_supported_product_types', array( 'simple', 'variable', 'variation', 'subscription', 'variable-subscription', 'subscription_variation', 'bundle', 'composite', ) ); -
do_action( 'peachpay_convesiopay_after_component', $this ); -
apply_filters( 'peachpay_convesiopay_allow_test_tokens', $default ); -
do_action( 'peachpay_convesiopay_before_component', $this ); -
do_action( 'peachpay_convesiopay_card_payment_method_ready', $order, $payment_data, $source ); -
apply_filters( 'peachpay_convesiopay_checkout_extensions', array() ); -
apply_filters( 'peachpay_convesiopay_resolve_stored_card', null, $token_id, $order, $this ); -
do_action( 'peachpay_convesiopay_stored_card_payment_completed', $completed_order ?: $order, $resolved, $result ); -
apply_filters( 'peachpay_currency_code', get_woocommerce_currency() ); -
apply_filters( 'peachpay_currency_decimal_separator', wc_get_price_decimal_separator() ); -
apply_filters( 'peachpay_currency_decimals', wc_get_price_decimals() ); -
apply_filters( 'peachpay_currency_position', get_option( 'woocommerce_currency_pos' ) ); -
apply_filters( 'peachpay_currency_price_format', get_woocommerce_price_format() ); -
apply_filters( 'peachpay_currency_rounding_type', 'disabled', get_woocommerce_currency() ); -
apply_filters( 'peachpay_currency_switcher_convert_raw_price', $converted_price, $original_price, $number_of_decimal_places, $conversion_rate, $price_type ); -
apply_filters( 'peachpay_currency_symbol', get_woocommerce_currency_symbol() ); -
apply_filters( 'peachpay_currency_thousands_separator', wc_get_price_thousand_separator() ); -
apply_filters( 'peachpay_dynamic_feature_metadata', array(), $cart_key, $cart ); -
apply_filters( 'peachpay_field_editor_preserve_field', false, $key, $field, $section ); -
do_action( 'peachpay_init_compatibility' ); -
apply_filters( 'peachpay_native_checkout_data', $native_checkout_data ); -
do_action( 'peachpay_plugin_activated' ); -
do_action( 'peachpay_plugin_deactivated' ); -
do_action( 'peachpay_plugin_downgraded', $old_version ); -
do_action( 'peachpay_plugin_upgraded', $old_version ); -
apply_filters( 'peachpay_product_display_price', $price, $wc_product, ( 'incl' === WC()->cart->get_tax_price_display_mode() ) ); -
apply_filters( 'peachpay_product_price', $price, $wc_product ); -
apply_filters( 'peachpay_recommendations', $candidates, $evidence ); -
apply_filters( 'peachpay_script_data', $data ); -
apply_filters( 'peachpay_service_fee_label', $label ); -
do_action( 'peachpay_settings_admin_action' ); -
do_action( 'peachpay_setup_module' ); -
apply_filters( 'peachpay_shipping_method_description', '', $shipping_method ); -
apply_filters( 'peachpay_store_credit_gateway_ids', $store_credit_gateway_ids ); -
do_action( "peachpay_update_options_admin_settings_{$section}" ); -
apply_filters( 'peachpay_validation_checks', $request ); -
apply_filters( 'peachpay_wallet_gateways_to_register', $wallet_gateways ); -
apply_filters( 'plugin_locale', determine_locale(), $domain ); -
apply_filters( 'widget_title', $instance['title'] ); -
woocommerce_checkout_after_terms_and_conditions
action Used by 8 plugins → Copy link Customise this hookdo_action( 'woocommerce_checkout_after_terms_and_conditions' ); -
woocommerce_checkout_before_terms_and_conditions
action Used by 8 plugins → Copy link Customise this hookdo_action( 'woocommerce_checkout_before_terms_and_conditions' ); -
woocommerce_checkout_terms_and_conditions
action Used by 6 plugins → Copy link Customise this hookdo_action( 'woocommerce_checkout_terms_and_conditions' ); -
apply_filters( 'woocommerce_default_order_status', 'pending' ); -
apply_filters( 'woocommerce_empty_price_html', '', $product ); -
woocommerce_product_variation_title_attributes_separator
filter Used by 11 plugins → Copy link Customise this hookapply_filters( 'woocommerce_product_variation_title_attributes_separator', ' - ', $product ); -
do_action( 'woocommerce_review_order_after_submit' ); -
do_action( 'woocommerce_review_order_before_submit' ); -
apply_filters( "woocommerce_settings_api_form_fields_{$this->id}", array_map( array( $this, 'set_defaults' ), $this->form_fields ) ); -
apply_filters( "woocommerce_settings_api_sanitized_fields_{$gateway->id}", $current_settings ); -
apply_filters( 'woocommerce_shipping_package_name', __( 'Shipping', 'peachpay-for-woocommerce' ), $package_index, $package ); -
do_action( 'woocommerce_update_option', array( 'id' => $option_key ) );
Generated from PeachPay'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.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin 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 thisNot 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: