Checkout: Action Reference
The WordPress Shopping Cart plugin will fire actions throughout it’s code and you can hook onto these actions while receiving parameters and execute your own functions accordingly.
It works exactly like the WordPress Plugin API/Action Reference by using the
do_action() function in it’s code and the action hooks are used in the same manner.
More and more action hooks are constantly added to this documentation so remember to search or request more action hooks if you are looking for something specific. Below are all the available action hooks.
wpco_tax_settings_inside_before– Shows when tax calculation is on, before other tax settings at Checkout > Configuration > Tax & Shipping.
wpco_tax_settings_inside_after– Shows when tax calculation is on, after the other tax settings at Checkout > Configuration > Tax & Shipping.
wpco_tax_settings_outside_before– Shows at the top of the ‘Tax Settings’ box at Checkout > Configuration > Tax & Shipping.
wpco_tax_settings_outside_after– Shows at the bottom of the ‘Tax Settings’ box at Checkout > Configuration > Tax & Shipping.
checkout_process_order_X– Runs after the billing page where the payment form is output.
wpco_order_finished– Runs when an order is completed.
checkout_admin_supplier_saved– Runs after a supplier has been saved.
Payment Method Actions
checkout_admin_paymentmethods_list– Runs at the end of the payment methods list under Checkout > Configuration > Payment Methods in the box on the right.
checkout_admin_pmethods_metaboxes– Runs at the end of the payment methods meta boxes under Checkout > Configuration > Payment Methods so that you can add your own settings.
Shopping Cart Actions
wpco_cart_after_global– Executes after the global custom fields (order options).
checkout_admin_metaboxes_extensions_settings– Do something when the Checkout > Extensions > Settings metaboxes are registered. You can add your own settings metabox this way.
checkout_admin_extensions_settings_saved– Runs after the settings have been saved under Checkout > Extensions > Settings section in the plugin.