Complete PayPal Payments For WooCommerce 1.0.7 has 8 actions and 15 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 Complete PayPal Payments For WooCommerce fires an action
add_action( 'woocommerce_before_checkout_process', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Complete PayPal Payments For WooCommerce is about to use
add_filter( 'woocommerce_add_to_cart_validation', function( $value, $product_id, $quantity ) {
// Change $value here.
return $value;
}, 10, 3 );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
-
apply_filters( 'woocommerce_add_to_cart_validation', true, $product_id, $quantity ); -
do_action( 'woocommerce_before_checkout_process' ); -
do_action( 'woocommerce_checkout_process' ); -
apply_filters( 'cc_form_label_card_code', __('Card code', 'complete-paypal-payments-for-woocommerce'), $this->id ); -
apply_filters( 'cc_form_label_card_number', __('Card number', 'complete-paypal-payments-for-woocommerce'), $this->id ); -
apply_filters( 'cc_form_label_expiry', __('Expiry (MM/YY)', 'complete-paypal-payments-for-woocommerce'), $this->id ); -
apply_filters( 'cpp_checkout_top_html', '<div class="psb-button-container"><fieldset><legend class="express-title">' . __('PayPal Checkout', 'complete-paypal-payments-for-woocommerce') . '</legend><div class="wc_ppcp_express_checkout_gateways"><div class="express_payment_method_ppcp"><div id="cpp_checkout_top"></div></div></div></fieldset><span class="express-divider">OR</span></div>' ); -
do_action( 'cpp_request_respose_data', $request, $response, $action_name ); -
apply_filters( 'cpp_review_order_cance_button_html', '<a class="button alt cpp_cancel" name="woocommerce_checkout_cancel_order" href="' . esc_attr($cancel_order_url) . '" >' . $order_button_text . '</a>' ); -
apply_filters( 'cpp_settings', array_merge($default_settings, $button_manager_settings, $pay_later_messaging_settings, $order_review_page_settings, $advanced_settings) ); -
do_action( 'display_paypal_button_checkout_page' ); -
apply_filters( 'woocommerce_add_to_cart_handler', $adding_to_cart->get_type(), $adding_to_cart ); -
do_action( "woocommerce_add_to_cart_handler_{$add_to_cart_handler}", $url ); -
apply_filters( 'woocommerce_add_to_cart_product_id', absint(wp_unslash($_REQUEST['psb-add-to-cart'])) ); -
apply_filters( 'woocommerce_cart_needs_payment', $order->needs_payment(), WC()->cart ); -
do_action( 'woocommerce_checkout_order_processed', $order_id, $posted_data, $order ); -
woocommerce_create_account_default_checked
filter Used by 51 plugins → Copy link Customise this hookapply_filters( 'woocommerce_create_account_default_checked', false ); -
do_action( 'woocommerce_credit_card_form_end', $this->id ); -
apply_filters( 'woocommerce_credit_card_form_fields', $default_fields, $this->id ); -
do_action( 'woocommerce_credit_card_form_start', $this->id ); -
apply_filters( 'woocommerce_gateway_icon', $icon, $this->id ); -
apply_filters( 'woocommerce_get_return_url', $order->get_checkout_order_received_url(), $order ); -
apply_filters( 'woocommerce_paypal_supported_currencies', array('AUD', 'BRL', 'CAD', 'MXN', 'NZD', 'HKD', 'SGD', 'USD', 'EUR', 'JPY', 'TRY', 'NOK', 'CZK', 'DKK', 'HUF', 'ILS', 'MYR', 'PHP', 'PLN', 'SEK', 'CHF', 'TWD', 'THB', 'GBP', 'RMB', 'RUB', 'INR') );
Generated from Complete PayPal Payments For WooCommerce'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: