Payment Plugins Braintree For WooCommerce 3.2.86 has 38 actions and 141 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 Payment Plugins Braintree For WooCommerce fires an action
add_action( 'wc_braintree_before_add_payment_method', function( $object ) {
// Your code runs here.
}, 10, 1 );
// Change a value Payment Plugins Braintree For WooCommerce is about to use
add_filter( 'wc_braintree_fee_attributes', function( $fee ) {
// Change $fee here.
return $fee;
}, 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.
All hooks
-
/** * Action added so other plugins can throw errors before add payment method * starts. */ do_action( 'wc_braintree_before_add_payment_method', $this ); -
/** * Allow other plugins to adjust the fee such as the name, calculation, etc. */ apply_filters( 'wc_braintree_fee_attributes', $fee ); -
apply_filters( 'wc_braintree_transaction_submit_for_settlement', $this->get_option( 'charge_type' ) === 'capture', $this ); -
apply_filters( "wc_{$this->id}_form_fields", include WC_BRAINTREE_PATH . 'includes/gateways/settings/local-payment-settings.php', $this ); -
apply_filters( 'wc_braintree_cart_buttons_priority', 30 ); -
apply_filters( 'wcs_braintree_add_payment_method_args', $args, $this->id, $this ); -
apply_filters( 'wcs_braintree_get_subscription_statuses', array( 'wc-active' => array( 'label' => __( 'Active', 'woo-payment-gateway' ), 'public' => true, 'exclude_from_search' => false, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, 'label_count' => _n_noop( 'Active <span class="count">(%s)</span>', 'Active <span class="count">(%s)</span>', 'woo-payment-gateway' ), ), 'wc-expired' => array( 'label' => __( 'Expired', 'woo-payme... ); -
apply_filters( 'woocommerce_no_available_payment_methods_message', __( 'Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) ); -
apply_filters( 'braintree_saved_payment_methods_list', $saved_methods ); -
apply_filters( 'wc_braintree_add_order_success_note', true, $order, $transaction, $this ); -
apply_filters( 'wc_braintree_add_payment_method_args', $args, $this ); -
do_action( 'wc_braintree_admin_options', $this ); -
apply_filters( 'wc_braintree_admin_settings_tabs', array() ); -
apply_filters( 'wc_braintree_advanced_fraud_form_fields', array( 'fraud' => array( 'type' => 'title', 'title' => __( 'Advanced Fraud', 'woo-payment-gateway' ), 'description' => __( 'If enabled, Braintree will perform fraud checks on your transactions by capturing customer\'s device data. <a target="_blank" href="https://articles.braintreepayments.com/guides/fraud-tools/advanced/overview#enabling-advanced-fraud-tools">Read more here</a>. <p><ol><li>Log... ); -
apply_filters( 'wc_braintree_advanced_settings_tabs', array() ); -
apply_filters( 'wc_braintree_after_checkout_validation_notice', __( 'Please fill out all required fields then complete your order.', 'woo-payment-gateway' ), $data, $errors ); -
apply_filters( 'wc_braintree_api_controllers', $controllers ); -
apply_filters( 'wc_braintree_api_form_fields', include 'api-settings.php' ); -
do_action( "wc_braintree_api_kount_event_{$name}", $order, $attribs, $request ); -
apply_filters( 'wc_braintree_applepay_button_type', $type ); -
apply_filters( 'wc_braintree_authorized_order_status', 'default' === $order_status ? 'on-hold' : $order_status, $order, $this ); -
do_action( 'wc_braintree_before_card_container', $gateway ); -
do_action( "wc_braintree_before_process_order_{$this->id}", $order ); -
apply_filters( 'wc_braintree_blocks_get_extended_data', [] ); -
do_action( 'wc_braintree_blocks_register_script_dependencies', $handle ); -
apply_filters( 'wc_braintree_can_display_street', $bool, $this ); -
apply_filters( 'wc_braintree_card_loader_options', array( 'circular-loader.php' => 'circular-loader', 'hour-glass.php' => 'hour-glass', 'loading.php' => 'loading', 'pacman.php' => 'pacman', 'ping-pong.php' => 'ping-pong', 'processing-plain.php' => 'processing-plain', 'rotating-gears.php' => 'rotating-gears', 'simple-dots.php' => 'simple-dots', 'stairs-loader.php' => 'stairs-loader', ) ); -
apply_filters( 'wc_braintree_cart_controller_validate_address', $result, $address, $request ); -
do_action( 'wc_braintree_cart_form_fields' ); -
apply_filters( 'wc_braintree_cart_payment_gateways', $gateways ); -
apply_filters( 'wc_braintree_connection_settings', array( 'environment' => empty( $env ) ? wc_braintree_environment() : $env, 'merchantId' => wc_braintree_merchant_id( $env ), 'publicKey' => wc_braintree_public_key( $env ), 'privateKey' => wc_braintree_private_key( $env ), ) ); -
apply_filters( 'wc_braintree_create_customer_args', $this->get_customer_args( $customer ) ); -
apply_filters( 'wc_braintree_custom_form_options', array( 'bootstrap_form' => array( 'label' => __( 'Bootstrap Form', 'woo-payment-gateway' ), 'template' => 'custom-forms/bootstrap-form.php', 'css' => WC_BRAINTREE_ASSETS . 'css/custom-forms/bootstrap-form.css', 'external_css' => '', 'javascript' => WC_BRAINTREE_ASSETS . 'js/frontend/custom-forms/bootstrap-form.js', 'default_styles' => '{"input":{"font-size":"16px", "font-family":"helvetica, tah... ); -
apply_filters( 'wc_braintree_descriptor_form_fields', array( 'descriptors' => array( 'title' => __( 'Dynamic Descriptor', 'woo-payment-gateway' ), 'type' => 'title', 'description' => __( '<i><b>Note:</b> Descriptors are not required. Braintree will send your business name by default and we recommend you leave these values blank to prevent transaction errors if you enter a descriptor name incorrectly.</i> Dynamic descriptors are sent on a per-order... ); -
apply_filters( 'wc_braintree_environment', braintree()->api_settings->get_option( 'environment' ) ); -
apply_filters( 'wc_braintree_errors_from_collection', $messages[ $error->code ], $error ); -
apply_filters( 'wc_braintree_errors_from_object', $message, $response ); -
apply_filters( 'wc_braintree_fee_args', array( '[qty]' => $cart->get_cart_contents_count(), '[cost]' => $cart->cart_contents_total ) ); -
apply_filters( 'wc_braintree_fee_form_fields', array( 'title' => array( 'title' => __( 'Fees', 'woo-payment-gateway' ), 'type' => 'title', 'description' => __( 'You can add a fee to the customer\'s order such as a convenience fee for accepting credit cards. <a target="_blank" href="https://docs.paymentplugins.com/wc-braintree/config/#/braintree_advanced?id=fee-settings">Fee Guide & Examples</a>', 'woo-payment-gateway' ), ), 'enabled' => arr... ); -
apply_filters( 'wc_braintree_gateway_is_available', parent::is_available(), $this ); -
apply_filters( 'wc_braintree_gateway_token_type', $this->token_type ); -
apply_filters( "wc_braintree_get_{$this->object_type}_json", array( 'id' => $this->get_id(), 'type' => $this->get_type(), 'method_type' => $this->get_method_type(), 'token' => $this->get_token(), 'title' => $this->get_payment_method_title(), ) ); -
apply_filters( 'wc_braintree_get_3ds_actions', array( 'no_action' => __( 'No Action (Braintree will handle)', 'woo-payment-gateway' ), 'authorize_only' => __( 'Authorize Amount', 'woo-payment-gateway' ), 'reject' => __( 'Reject Transaction', 'woo-payment-gateway' ), 'accept' => __( 'Accept Transaction', 'woo-payment-gateway' ), ) ); -
apply_filters( 'wc_braintree_get_card_type_icons', array( 'Visa' => sprintf( '<img class="wc-braintree-method-icon %s visa" src="%s"/>', $icon_style, $path . "payment-methods/{$icon_style}/visa.svg" ), 'MasterCard' => sprintf( '<img class="wc-braintree-method-icon %s mastercard" src="%s"/>', $icon_style, $path . "payment-methods/{$icon_style}/master_card.svg" ), 'AmericanExpress' => sprintf( '<img class="wc-braintree-method-icon %s amex" src="%... ); -
apply_filters( 'wc_braintree_get_checkout_fields', $fields, $page ); -
apply_filters( 'wc_braintree_get_conditional_values', $values ); -
apply_filters( 'wc_braintree_get_currency', $currency ); -
apply_filters( 'wc_braintree_get_custom_form_fields', $fields, $this ); -
apply_filters( 'wc_braintree_get_customer_id', get_user_option( "braintree_{$env}_vault_id", $user_id ), $user_id, $env ); -
apply_filters( 'wc_braintree_get_display_items', $items, $page, $this ); -
apply_filters( 'wc_braintree_get_display_items_for_cart', $items, $incl_tax ); -
apply_filters( 'wc_braintree_get_display_items_for_order', $items, $order, $this ); -
apply_filters( 'wc_braintree_get_error_messages', array( 'INSTANTIATION_OPTION_REQUIRED' => __( 'Error initiating Braintree client. This error occurs when you haven\'t finished configuring your API keys.', 'woo-payment-gateway' ), 'INVALID_CLIENT_TOKEN' => __( 'Invalid client token supplied. Please check your API keys.', 'woo-payment-gateway' ), 'HOSTED_FIELDS_FIELDS_EMPTY' => __( 'Please fill out the payment form.', 'woo-payment-gateway' ), '... ); -
apply_filters( 'wc_braintree_get_fee_gateways', $gateways ); -
apply_filters( 'wc_braintree_get_hosted_form_styles', $styles, $this ); -
apply_filters( 'wc_braintree_get_merchant_account', $account, $currency ); -
apply_filters( 'wc_braintree_get_merchant_accounts', braintree()->merchant_settings->get_option( "{$env}_merchant_accounts" ), $env ); -
apply_filters( 'wc_braintree_get_new_method_label', $this->new_method_label, $this ); -
apply_filters( 'wc_braintree_get_payment_method_format', $gateway->get_option( 'method_format' ), $gateway ); -
apply_filters( 'wc_braintree_get_paypal_flow', $this->paypal_flow, $this, $page ); -
apply_filters( 'wc_braintree_get_saved_method_label', $this->saved_method_label, $this ); -
apply_filters( 'wc_braintree_global_script_version', $this->braintree_version ); -
apply_filters( 'wc_braintree_is_local_payment_available', $_available, $this, $currency, $country ); -
apply_filters( 'wc_braintree_kount_api_can_change_status', true, $order, $transaction ); -
apply_filters( 'wc_braintree_kount_decline_order_action', $this->get_option( 'kount_decline_action' ) ); -
apply_filters( 'wc_braintree_kount_review_order_status', $this->get_option( 'kount_review_action' ) ); -
apply_filters( 'wc_braintree_local_gateways_tab', array() ); -
do_action( "wc_braintree_localize_{$current_section}_settings" ); -
apply_filters( "wc_braintree_localize_script_{$name}", $data, $name ); -
apply_filters( 'wc_braintree_localized_paypal_params', $data ); -
apply_filters( 'wc_braintree_merchant_account_form_fields', array( 'merchant_accounts' => array( 'type' => 'title', 'title' => __( 'Merchant Accounts', 'woo-payment-gateway' ), 'description' => __( 'Merchant Accounts determine which currencies you can accept in your Braintree account. The merchant account ID is a unique identifier for a specific merchant account in your gateway, and is used to specify which merchant account to use when creating a transa... ); -
apply_filters( 'wc_braintree_mini_cart_deps', array( $scripts->get_handle( 'client-manager' ), $scripts->get_handle( 'data-collector-v3' ) ), $scripts ); -
apply_filters( 'wc_braintree_next_token_update', time() + ( MINUTE_IN_SECONDS * 60 * 24 * 14 ) ); -
apply_filters( 'wc_braintree_order_statuses', array( 'wc-kount-review' => __( 'Kount review required', 'woo-payment-gateway' ), 'wc-kount-escalate' => __( 'Kount escalate', 'woo-payment-gateway' ), ) ); -
apply_filters( 'wc_braintree_order_statuses_for_registration', array( 'wc-kount-review' => array( 'label' => _x( 'Kount review required', 'Order status', 'woo-payment-gateway' ), 'public' => false, 'exclude_from_search' => false, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, 'label_count' => _n_noop( 'Kount review required <span class="count">(%s)</span>', 'Kount review required <span class="count">(%s)</span>', 'woo-payment-gatewa... ); -
apply_filters( 'wc_braintree_order_transaction_args', $args, $order, $this->id ); -
do_action( 'wc_braintree_output_change_payment_method_fields' ); -
do_action( 'wc_braintree_output_checkout_fields' ); -
apply_filters( 'wc_braintree_output_display_items', $data, $page, $this ); -
do_action( 'wc_braintree_output_product_checkout_fields' ); -
apply_filters( 'wc_braintree_payment_gateways', array( 'WC_Braintree_CC_Payment_Gateway', 'WC_Braintree_PayPal_Payment_Gateway', 'WC_Braintree_GooglePay_Payment_Gateway', 'WC_Braintree_ApplePay_Payment_Gateway', 'WC_Braintree_Venmo_Payment_Gateway', 'WC_Braintree_IDEAL_Payment_Gateway', 'WC_Braintree_P24_Payment_Gateway', 'WC_Braintree_EPS_Payment_Gateway', 'WC_Braintree_Giropay_Payment_Gateway', 'WC_Braintree_Bancontact_Payment_Gateway', 'W... ); -
apply_filters( 'wc_braintree_payment_method_formats', array( \Braintree\PaymentInstrumentType::CREDIT_CARD => array( 'type_ending_in' => array( 'label' => __( 'Type Ending In', 'woo-payment-gateway' ), 'example' => 'Visa ending in 1111', 'format' => __( '{card_type} ending in {last4}', 'woo-payment-gateway' ), ), 'type_masked_number' => array( 'label' => __( 'Type Masked Number', 'woo-payment-gateway' ), 'example' => 'Visa 4111********1111', 'form... ); -
apply_filters( 'wc_braintree_payment_method_title', str_replace( array_keys( $data ), $data, $format ), $method, $format_key ); -
do_action( "wc_braintree_payment_token_deleted_{$token->get_gateway_id()}", $token_id, $token ); -
apply_filters( 'wc_braintree_payment_token_formats', $this->payment_formats, $this ); -
apply_filters( 'wc_braintree_paypal_button_options', $options, $this ); -
apply_filters( 'wc_braintree_paypal_order_line_items_enabled', false, $args, $order, $this ); -
apply_filters( 'wc_braintree_paypal_supported_locales', array() ); -
do_action( 'wc_braintree_post_payment_processing', $order, $this ); -
apply_filters( 'wc_braintree_pre_order_add_payment_args', $args = array( 'billingAddress' => array( 'streetAddress' => $order->get_billing_address_1() ), ) ); -
apply_filters( 'wc_braintree_pre_order_transaction_args', $args ); -
apply_filters( 'wc_braintree_print_scripts', false ); -
apply_filters( 'wc_braintree_product_payment_gateways', $gateways ); -
do_action( 'wc_braintree_recurring_payment_failure', $amount, $order, $this, $response ); -
do_action( 'wc_braintree_recurring_payment_success', $amount, $order, $this, $response ); -
apply_filters( 'wc_braintree_register_domain', $domain ); -
do_action( 'wc_braintree_rest_process_checkout', $request, $gateway ); -
apply_filters( 'wc_braintree_result_error_message', $response->message ); -
apply_filters( 'wc_braintree_save_cc_enabled', is_checkout() && WC()->payment_gateways()->payment_gateways()['braintree_cc']->is_active( 'save_card_enabled' ) ); -
apply_filters( 'wc_braintree_save_customer_id', $vault_id ); -
do_action( 'wc_braintree_save_order_meta', $order, $transaction, $this ); -
do_action( 'wc_braintree_save_zero_total_order_meta', $order, $this ); -
apply_filters( 'wc_braintree_script_dependencies', $deps, $handle ); -
apply_filters( 'wc_braintree_set_order_lock', 2 * MINUTE_IN_SECONDS ); -
apply_filters( 'wc_braintree_settings_classes', array( 'api_settings' => 'WC_Braintree_API_Settings', 'merchant_settings' => 'WC_Braintree_Merchant_Account_Settings', 'fraud_settings' => 'WC_Braintree_Advanced_Fraud_Settings', 'descriptor_settings' => 'WC_Braintree_Descriptor_Settings', 'fee_settings' => 'WC_Braintree_Fee_Settings', 'subscription_settings' => 'WC_Braintree_Subscription_Settings', ) ); -
apply_filters( 'wc_braintree_shortcode_function', $function ); -
apply_filters( 'wc_braintree_subscription_form_fields', array( 'enabled' => array( 'type' => 'checkbox', 'title' => __( 'Enabled', 'woo-payment-gateway' ), 'default' => 'no', 'label' => '', 'description' => __( 'If enabled, you can sell subscription products on your site.', 'woo-payment-gateway' ), ), 'webhook_url' => array( 'type' => 'paragraph', 'title' => __( 'Webook URL', 'woo-payment-gateway' ), 'text' => get_rest_url( null, 'wc-braintree/v1/we... ); -
apply_filters( 'wc_braintree_subscription_submit_for_settlement', $this->get_option( 'wcs_charge_type' ) === 'capture', $this, $order ); -
apply_filters( 'wc_braintree_token_payment_method_title', str_replace( array_keys( $data ), $data, $format ), $this ); -
apply_filters( 'wc_braintree_update_address_error', new WP_Error( 'shipping-address', $e->getMessage(), array( 'status' => 200 ) ), $payment_method, $request ); -
apply_filters( 'wc_braintree_update_address_response', array( 'data' => $gateway->update_shipping_address_response( array( 'chosen_shipping_methods' => WC()->session->get( 'chosen_shipping_methods', array() ), 'address' => $address, 'total' => WC()->cart->total ) ), ), $payment_method, $request ); -
apply_filters( 'wc_braintree_update_customer_args', $this->get_customer_args( $customer ) ); -
apply_filters( 'wc_braintree_update_shipping_method_error', new WP_Error( 'shipping-address', $e->getMessage(), array( 'status' => 200 ) ), $payment_method, $request ); -
apply_filters( 'wc_braintree_update_shipping_method_response', array( 'data' => $gateway->update_shipping_method_response( array( 'chosen_shipping_methods' => $chosen_shipping_methods, 'total' => WC()->cart->total ) ), ), $payment_method, $request ); -
apply_filters( 'wc_braintree_update_shipping_response', array( 'data' => $payment_method->update_shipping_response( array( 'chosen_shipping_methods' => WC()->session->get( 'chosen_shipping_methods', array() ), 'total' => WC()->cart->total ), $request ), ) ); -
do_action( "wc_braintree_webhook_notification_{$notification->kind}", $notification, $request ); -
apply_filters( 'wc_braintree_woofunnels_transaction_args_from_order', $args, $this, $order ); -
do_action( 'wcs_braintree_after_recurring_cart_calculations' ); -
do_action( 'wcs_braintree_before_change_payment_method_gateways', $subscription ); -
apply_filters( 'wcs_braintree_billing_interval_string', $interval ? $string[ $interval ] : $string, $interval ); -
apply_filters( 'wcs_braintree_billing_intervals', $intervals ); -
apply_filters( 'wcs_braintree_billing_periods', $periods ); -
apply_filters( 'wcs_braintree_billing_periods_string', $period == null ? 'month' : $periods[ $period ], $type, $period ); -
apply_filters( 'wcs_braintree_calculate_next_payment_date', $next_payment_date, $date, $period, $interval ); -
apply_filters( 'wcs_braintree_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key ); -
apply_filters( 'wcs_braintree_cart_recurring_tax_html', wcs_braintree_get_recurring_total_text( $cart->get_taxes_total(), $cart ) ); -
apply_filters( 'wcs_braintree_cart_recurring_total_html', $recurring_total ); -
apply_filters( 'wcs_braintree_cart_subtotal_string', sprintf( '%s %s', $cart->get_cart_subtotal(), $text ), $cart ); -
apply_filters( 'wcs_braintree_cart_tax_total_html', $recurring_total ); -
apply_filters( 'wcs_braintree_cart_totals_coupon_html', $discount_html, $coupon, $recurring_cart ); -
do_action( 'wcs_braintree_change_payment_method_success', $result, $subscription, $gateway ); -
apply_filters( 'wcs_braintree_get_endpoints', $this->endpoints ); -
apply_filters( 'wcs_braintree_get_interval_string', sprintf( __( '%s', 'woo-payment-gateway' ), $interval > 1 ? wcs_braintree_billing_interval_string( $interval ) : sprintf( __( '/ %s', 'woo-payment-gateway' ), wcs_braintree_get_period_string( $period ) ) ), $interval, $period ); -
apply_filters( 'wcs_braintree_get_length_string', $length > 0 ? sprintf( __( ' for %1$s %2$s', 'woo-payment-gateway' ), $length, wcs_braintree_billing_periods_string( $type, $period ) ) : '', $length, $period ); -
apply_filters( 'wcs_braintree_get_order_item_totals', $total_rows, $this, $tax_display ); -
apply_filters( 'wcs_braintree_get_payment_method_to_display', $this->get_payment_method_title(), $this ); -
apply_filters( 'wcs_braintree_get_price_string', $price_string, $total_string, $period, $interval ); -
apply_filters( 'wcs_braintree_get_product_price_html', $price_html, $price, $product, $quantity ); -
apply_filters( 'wcs_braintree_get_recurring_cart_key', md5( str_replace( ' ', '_', $key ) ), $product ); -
apply_filters( 'wcs_braintree_get_subscription', $subscription ); -
apply_filters( 'wcs_braintree_get_subscription_actions', $actions ); -
apply_filters( 'wcs_braintree_get_subscriptions_for_order', $subscriptions, $order ); -
do_action( 'wcs_braintree_pre_change_payment_method_template' ); -
apply_filters( 'wcs_braintree_product_is_subscription', $product && $product->is_type( array( 'braintree-subscription', 'braintree-variable-subscription', 'braintree-subscription-variation', ) ) ); -
apply_filters( 'wcs_braintree_product_signup_fee_name', sprintf( __( '%s Signup Fee', 'woo-payment-gateway' ), $product->get_title() ), $product ); -
do_action( 'wcs_braintree_recurring_cart_totals_after' ); -
do_action( 'wcs_braintree_recurring_cart_totals_before' ); -
apply_filters( 'wcs_braintree_subscription_args', $args ); -
apply_filters( 'wcs_braintree_subscription_authorize_payment_status', $this->get_option( 'wcs_authorized_status' ) ); -
apply_filters( 'wcs_braintree_subscription_can_be_updated_to', $result, $this ); -
do_action( 'wcs_braintree_subscription_created', $subscription, $order ); -
apply_filters( 'wcs_braintree_subscription_form_fields', include WC_BRAINTREE_PATH . '/includes/gateways/settings/subscription-settings.php', $this ); -
apply_filters( 'wcs_braintree_subscription_formatted_order_total', $total_string, $this ); -
apply_filters( 'wcs_braintree_subscription_get_formatted_order_total', $total, $this ); -
apply_filters( 'wcs_braintree_subscription_length_string', $lengths ); -
do_action( 'wcs_braintree_subscription_pay_form', $order ); -
apply_filters( 'wcs_braintree_subscription_payment_args', $args, $amount, $order, $this->id ); -
wcs_braintree_subscription_status_{$status_transition['from']}_{$status_transition['to']}
action Copy link Customise this hookdo_action( "wcs_braintree_subscription_status_{$status_transition['from']}_{$status_transition['to']}", $this->get_id(), $this ); -
do_action( "wcs_braintree_subscription_status_{$status_transition['to']}", $this->get_id(), $this ); -
apply_filters( 'wcs_braintree_subscription_submit_for_settlement', $this->get_option( 'wcs_charge_type' ) === 'capture', $this, $order ); -
apply_filters( 'wcs_braintree_subscription_user_actions', $actions, $subscription ); -
apply_filters( 'wcs_braintree_subscription_view_url', $url, $this ); -
apply_filters( 'wfocu_payments_get_order_number', sprintf( '%s-%s', $order->get_order_number(), $current_offer ), $this ); -
do_action( 'woocommerce_calculated_shipping' ); -
apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_order_item_class', 'order_item', $item, $order ); -
do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, false ); -
do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, false ); -
apply_filters( 'woocommerce_order_item_name', esc_html( $item->get_name() ), $item, false ); -
apply_filters( 'woocommerce_order_item_quantity_html', ' <strong class="product-quantity">' . sprintf( '× %s', esc_html( $item->get_quantity() ) ) . '</strong>', $item ); -
apply_filters( 'woocommerce_order_item_visible', true, $item ); -
do_action( 'woocommerce_pay_order_after_submit' ); -
do_action( 'woocommerce_pay_order_before_submit' ); -
apply_filters( 'woocommerce_pay_order_button_html', '<button type="submit" class="button alt" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ); -
apply_filters( "woocommerce_settings_api_sanitized_fields_{$this->id}", $this->settings ); -
do_action( "woocommerce_settings_checkout_{$current_section}" ); -
woocommerce_settings_checkout_{$current_section}_{$wc_braintree_subsection}
action Copy link Customise this hookdo_action( "woocommerce_settings_checkout_{$current_section}_{$wc_braintree_subsection}" ); -
do_action( "woocommerce_update_options_checkout_{$current_section}" ); -
woocommerce_update_options_checkout_{$current_section}_{$wc_braintree_subsection}
action Copy link Customise this hookdo_action( "woocommerce_update_options_checkout_{$current_section}_{$wc_braintree_subsection}" );
Generated from Payment Plugins Braintree 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: