Archives

Checkout: Action – checkout_process_order_X

Description The checkout_process_order_X action hook runs after the billing step of checkout, when the customer has chosen the payment method to pay with. X in the hook name is replaced with the slug of your payment method. So if the slug of your payment method is “mypmethod”, then the hook will be checkout_process_order_mypmethod. Usage Arguments Continue Reading…

Continue Reading

Checkout: Action – checkout_admin_paymentmethods_list

Description Use checkout_admin_paymentmethods_list action hook to add a checkbox to the list of payment methods checkboxes under Checkout > Configuration which is used to enable/disable certain payment methods accordingly. Usage Arguments $paymentmethods – An Array of current payment methods slugs. $class – The current CSS class of the table row Example

Continue Reading

Checkout: Action – checkout_admin_pmethods_metaboxes

Description The checkout_admin_pmethods_metaboxes action hook lets you do something when the metaboxes are registered for the Checkout > Configuration > Payment Methods section. You can use this to add your own metabox with settings for your own payment method for example. Usage Use the action hook like this: Arguments $page – The current dashboard page slug Continue Reading…

Continue Reading

Checkout: Action – checkout_admin_metaboxes_extensions_settings

Description Use the checkout_admin_metaboxes_extensions_settings action hook to do something while the metaboxes are registered for the Checkout > Extensions > Settings section of the plugin. Usage You can hook to this action like this: Arguments $page – The current metaboxes page slug in admin Example Here is a full example of using this action hook:

Continue Reading

Checkout: Action – checkout_order_finished

Description checkout_order_finished action hook is fired when an order is finished. Arguments $order_id (The ID of the order which is completed eg. 123) $pmethod (The slug of the payment method which is used eg. pp) $paid (Paid status eg. Y or N) Example

Continue Reading

Beautiful Newsletter Templates

Professional newsletter templates that are fully responsive for desktop, tablet, and mobile. They are 100% cross-client compatible.

See Them

Pin It on Pinterest