DANGO COD Order Form for WooCommerce 1.2.1 has 21 actions and 58 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 DANGO COD Order Form for WooCommerce fires an action
add_action( 'dango_cof_order_box', function( $order ) {
// Your code runs here.
}, 10, 1 );
// Change a value DANGO COD Order Form for WooCommerce is about to use
add_filter( 'dango_cof_text_defaults', 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.
All hooks
-
/** * This action is documented below. */ do_action( 'dango_cof_order_box', $order ); -
/** * An item was added to a form order. */ do_action( 'dango_cof_order_item_added', $item_id, $line, $order ); -
/** * Extra shopper-text keys (Pro adds OTP, upsell and offer wording). */ apply_filters( 'dango_cof_text_defaults', array() ); -
/** * Enqueue Pro admin assets. */ do_action( 'dango_cof_admin_assets', $screen ); -
/** * Admin app bootstrap data (Pro adds licence state, offers, etc.). */ apply_filters( 'dango_cof_admin_bootstrap', $data, $screen ); -
/** * Admin screens. Pro adds Offers, Leads, Analytics, Integrations, Licence. */ apply_filters( 'dango_cof_admin_screens', $screens ); -
/** * Dashboard stats (Pro adds breakdowns). */ apply_filters( 'dango_cof_admin_stats', $data, $days ); -
/** * An advance payment ended: paid, unpaid (cancelled) or waived. */ do_action( "dango_cof_advance_{$result}", $order, $amount ); -
/** * An order was asked to pay in advance (deposit order created, or the whole * order waiting for payment). */ do_action( 'dango_cof_advance_asked', $order ); -
/** * Requests to pay in advance (Pro adds its risk rules here, or removes every * request for trusted customers). Each ask: { amount: * delivery|fixed|percent|full, value: float, reason: string }. */ apply_filters( 'dango_cof_advance_asks', $asks, $s, $order ); -
/** * Let WooCommerce's unpaid-order timer cancel this unpaid advance. */ apply_filters( 'dango_cof_advance_cancel_unpaid', true, $order ); -
/** * Button animations. Pro adds more. */ apply_filters( 'dango_cof_animations', $list ); -
/** * Before the order moves to its first real status (emails are sent then). */ do_action( 'dango_cof_before_order_status', $order, $s, $quote ); -
/** * Is this block part of the submission? Pro's conditional logic answers false * for a field hidden by its "show only when" rule, so a hidden required field * never blocks the order and its value is ignored. */ apply_filters( 'dango_cof_block_active', true, $block, $raw, $custom, $request ); -
/** * Palette groups. Pro adds "Offers". */ apply_filters( 'dango_cof_block_groups', $groups ); -
/** * Block types. Pro adds offer, countdown, scarcity and others here. */ apply_filters( 'dango_cof_block_types', $types ); -
/** * Daily clean-up (Pro purges leads and codes here). */ do_action( 'dango_cof_cleanup', $settings ); -
/** * Shopper-side event received (Pro records more). */ do_action( 'dango_cof_client_event', $type, $request ); -
/** * The shopper's IP. For unusual set-ups (a proxy with a public address the * plugin cannot recognise), return the right address here. */ apply_filters( 'dango_cof_client_ip', $ip, $remote ); -
/** * Delivery-time note shown under the delivery charge. */ apply_filters( 'dango_cof_delivery_eta', $eta, $city ); -
/** * Advance asked for an order (0 or the order total = the whole order). */ apply_filters( 'dango_cof_deposit_amount', $amount, $order ); -
/** * An event happened. Runs synchronously — keep listeners light. */ do_action( 'dango_cof_event', $type, $payload ); -
/** * Renderer payload for a form (Pro adds offers, custom CSS…). */ apply_filters( 'dango_cof_form_render_data', $out, $schema ); -
/** * Fires after a form is saved. */ do_action( 'dango_cof_form_saved', $id, $clean ); -
/** * Storefront config (Pro adds its module scripts and data). */ apply_filters( 'dango_cof_frontend_config', $config ); -
/** * Health checks (Pro adds licence, OTP provider, sheets…). */ apply_filters( 'dango_cof_health_checks', $checks ); -
/** * Language preset. Add-ons add their own shopper texts and block labels here * so a form switched to, say, Urdu is Urdu everywhere. */ apply_filters( 'dango_cof_language_preset', $p, $lang ); -
/** * Fires after the plugin and all modules are booted. */ do_action( 'dango_cof_loaded', $this ); -
/** * City list for a country. TrackKaro's saved courier cities are merged in * here. */ apply_filters( 'dango_cof_market_cities', $list, $country ); -
/** * An open order to add this submission to instead of creating a new one (Pro: * "merge repeat orders" — same phone, not yet dispatched). */ apply_filters( 'dango_cof_merge_order', null, $s, $quote ); -
/** * Modules to boot. Pro appends its modules here. */ apply_filters( 'dango_cof_modules', $modules, $this ); -
/** * A form order was created (not fired when the items were merged into an open * order — see dango_cof_order_merged). */ do_action( 'dango_cof_order_created', $order->get_id(), $s, $quote ); -
/** * A submission was merged into an open order. */ do_action( 'dango_cof_order_merged', $order, $s, $quote ); -
/** * Add meta to a form order before it is first saved. */ do_action( 'dango_cof_order_meta', $order, $s ); -
/** * Initial status for a form order. */ apply_filters( 'dango_cof_order_status', $status, $order, $s ); -
/** * Phone rules per country. */ apply_filters( 'dango_cof_phone_rules', $rules ); -
/** * Last check before the order is created (Pro: area allow/deny). Return a * WP_Error to stop with a message. */ apply_filters( 'dango_cof_pre_create_order', true, $s, $quote ); -
/** * Preview config (Pro registers its block scripts for the preview). */ apply_filters( 'dango_cof_preview_config', $config ); -
/** * Extra erasure (Pro removes leads). */ apply_filters( 'dango_cof_privacy_erase', $removed, $email ); -
/** * Extra export data (Pro adds leads). */ apply_filters( 'dango_cof_privacy_export', $data, $email ); -
/** * More per-product COD form fields (Pro: which form, offers). */ do_action( 'dango_cof_product_fields' ); -
/** * Does this product need add-on fields the quick form cannot ask for? */ apply_filters( 'dango_cof_product_has_required_options', $required, $product ); -
/** * Final say on the form mode for a product. */ apply_filters( 'dango_cof_product_mode', $mode, $product ); -
/** * Product data for the form (Pro adds offers, swatches…). */ apply_filters( 'dango_cof_product_payload', $data, $product ); -
/** * Final quote. */ apply_filters( 'dango_cof_quote', $quote, $args ); -
/** * Adjustments on the order: negative = discount (bundles, form discount), * positive = fee (COD fee). Each: { id, label, amount }. */ apply_filters( 'dango_cof_quote_adjustments', array(), $lines, $args ); -
/** * Client quote (Pro adds offer state, free-delivery progress…). */ apply_filters( 'dango_cof_quote_for_client', $out, $quote ); -
/** * Quote lines. Pro applies bundle prices and adds bump / upsell lines. A line * may carry 'custom_unit' (price to charge) and 'source'. */ apply_filters( 'dango_cof_quote_lines', $lines, $args ); -
/** * Rejection reason labels. */ apply_filters( 'dango_cof_reason_labels', $labels ); -
/** * The form a shopper request works with (WPML/Polylang translate its texts). */ apply_filters( 'dango_cof_request_form', $form, $request ); -
/** * Choose the form for a product. Pro uses this for per-product and * per-category assignment. */ apply_filters( 'dango_cof_resolve_form', $form_id, (int) $product_id ); -
/** * Extra sanitising for a block type (for props with custom shapes). */ apply_filters( 'dango_cof_sanitize_block_props', $out, $props, $type ); -
/** * Final say on a sanitised form (Pro cleans its own keys). */ apply_filters( 'dango_cof_sanitize_form', $out, $schema ); -
/** * Sanitise Pro groups. */ apply_filters( 'dango_cof_sanitize_settings', $out, $s, $this->stored_all() ); -
/** * Extra session data (Pro adds verified-phone state, lead token…). */ apply_filters( 'dango_cof_session_response', $data, $request ); -
/** * Default settings. Pro adds its own groups. */ apply_filters( 'dango_cof_settings_defaults', $defaults ); -
/** * Mask Pro secrets before settings reach the browser. */ apply_filters( 'dango_cof_settings_for_admin', $all ); -
/** * Fires after settings are saved. */ do_action( 'dango_cof_settings_saved', $clean ); -
/** * Delivery options (Pro adds weight bands, per-product surcharges, area * rules). */ apply_filters( 'dango_cof_shipping_options', $result, $ctx ); -
/** * Adjust a submission after validation (Pro validates its extras here). */ do_action( 'dango_cof_submission_built', $s, $request ); -
/** * Success response (Pro adds the post-purchase upsell here). */ apply_filters( 'dango_cof_success_response', $data, $order, $s ); -
/** * Design templates. Pro adds its library here. */ apply_filters( 'dango_cof_templates', $designs ); -
/** * Terms page linked from the order form. */ apply_filters( 'dango_cof_terms_page', $id ); -
woocommerce_apply_base_tax_for_local_pickup
filter Used by 15 plugins → Copy link Customise this hook/** * This filter is documented in WooCommerce (abstract-wc-order.php). */ apply_filters( 'woocommerce_apply_base_tax_for_local_pickup', true ); -
/** * This filter is documented in WooCommerce (abstract-wc-order.php). */ apply_filters( 'woocommerce_local_pickup_methods', array( 'legacy_local_pickup', 'local_pickup' ) ); -
do_action( 'dango_cof_confirmed', $order_id, 'advance_payment' ); -
apply_filters( 'dango_cof_guards', $this->guards, $this ); -
apply_filters( 'dango_cof_is_pro', false ); -
apply_filters( 'dango_cof_phone_accept_unknown', true, $digits ); -
apply_filters( 'dango_cof_product_types', array( 'simple', 'variable' ) ); -
apply_filters( 'dango_cof_remove_atc', true, $product ); -
apply_filters( 'dango_cof_sinks', $this->sinks, $this ); -
apply_filters( 'dango_cof_text_labels', $text_labels ); -
apply_filters( 'wcml_price_currency', get_woocommerce_currency() ); -
do_action( 'wcml_set_client_currency', $currency ); -
apply_filters( 'wpml_current_language', '' ); -
do_action( 'wpml_register_single_string', self::STRING_GROUP, $name, $value ); -
do_action( 'wpml_switch_language', $lang ); -
apply_filters( 'wpml_translate_single_string', $value, self::STRING_GROUP, $name );
Generated from DANGO COD Order Form 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: