One Page Checkout for WooCommerce 1.8.0 has 7 actions and 39 filters, read directly from its source code on Nov 19, 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 One Page Checkout for WooCommerce fires an action
add_action( 'osoffw_order_before_totals', function( $order, $args ) {
// Your code runs here.
}, 10, 2 );
// Change a value One Page Checkout for WooCommerce is about to use
add_filter( 'osoffw_guaranteed_safe_checkout_image_url', function( $default ) {
// Change $default here.
return $default;
}, 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
-
/** * Branding may replace the default badge image. */ apply_filters( 'osoffw_guaranteed_safe_checkout_image_url', $default ); -
/** * Action: fired after the order is built, before totals are calculated. Use * this hook to add extra features (e.g., coupons, fees, bundles) without * modifying this file. Works for ALL payment modes. */ do_action( 'osoffw_order_before_totals', $order, $args ); -
/** * Filter qty visibility after the admin setting. */ apply_filters( 'osoffw_show_qty_in_form', $show, $product_id ); -
/** * WooCommerce statuses counted in the OSO admin stats box. Excludes * `incomplete` (Abandoned cart) and non-order states. */ apply_filters( 'osoffw_stats_order_statuses', array( 'pending', 'processing', 'on-hold', 'completed', 'refunded' ) ); -
apply_filters( 'osoffw_is_enabled', false, $product_id ); -
apply_filters( 'osoffw_str', $value, $key, $lang, $fallback ); -
apply_filters( 'osoffw_calc_shipping_before_woo', null, $product_id, $variation_id, $subtotal_used, $prod_obj ); -
apply_filters( 'osoffw_client_ip', $ip, $remote ); -
do_action( 'osoffw_enqueue_frontend_assets', $opts ); -
do_action( 'osoffw_form_before_fields', $pid ); -
apply_filters( 'osoffw_form_title_text', $final_title ); -
apply_filters( 'osoffw_free_shipping_min_amount', $min, $method, $raw_min ); -
apply_filters( 'osoffw_head_label', $head_label ); -
apply_filters( 'osoffw_js_data', $js_data, $opts ); -
apply_filters( 'osoffw_label_product_price', $label_price ); -
apply_filters( 'osoffw_label_shipping_price', $label_ship ); -
apply_filters( 'osoffw_label_tax', $label, $is_vat ); -
apply_filters( 'osoffw_label_total', $label_total ); -
do_action( 'osoffw_order_completed', $order->get_id(), $order ); -
apply_filters( 'osoffw_order_submit_button_html', $submit_button, $opts, $final_btn ); -
apply_filters( 'osoffw_plan_upgrade_url', $base, $tier ); -
apply_filters( 'osoffw_security_abd_create_limit', OSOFFW_SEC_ABD_CREATE_LIMIT ); -
apply_filters( 'osoffw_security_checkout_limit', OSOFFW_SEC_CHECKOUT_LIMIT ); -
apply_filters( 'osoffw_security_max_form_age', OSOFFW_SEC_MAX_FORM_AGE ); -
apply_filters( 'osoffw_security_min_form_seconds', OSOFFW_SEC_MIN_FORM_SECONDS ); -
apply_filters( 'osoffw_security_rate_limit_max', $max, $bucket ); -
apply_filters( 'osoffw_security_rate_limit_window', $window, $bucket ); -
apply_filters( 'osoffw_security_skip_rate_limit', false, sanitize_key( $bucket ) ); -
apply_filters( 'osoffw_security_submit_limit', OSOFFW_SEC_SUBMIT_LIMIT ); -
apply_filters( 'osoffw_security_token_limit', 120 ); -
apply_filters( 'osoffw_security_trusted_proxies', array() ); -
apply_filters( 'osoffw_settings_structure', $structure, $structure ); -
apply_filters( 'osoffw_show_guaranteed_safe_checkout', $enabled ); -
apply_filters( 'osoffw_submission_wait', 8 ); -
apply_filters( 'osoffw_summary_collapsed_default', false ); -
apply_filters( 'osoffw_summary_require_selection', false ); -
apply_filters( 'osoffw_thankyou_url', $default, $order ); -
apply_filters( 'osoffw_use_temp_cart_shipping', true, $product, $qty ); -
wc_order_attribution_tracking_field_prefix
filter Used by 25 plugins → Copy link Customise this hookapply_filters( 'wc_order_attribution_tracking_field_prefix', 'wc_order_attribution_' ); -
do_action( 'woocommerce_order_save_attribution_data', $order, $values ); -
do_action( 'woocommerce_review_order_before_payment' );
Generated from One Page Checkout 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: