pmpro_random_code

Filters how random codes are generated for invoices, discount codes, etc. Passes the code and order object.


apply_filters("pmpro_random_code", string $code, MemberOrder $this);

pmpro_delete_order

Use this hook to execute custom code after an order is deleted. It passes the order ID and order object being deleted.


do_action("pmpro_delete_order", int $order->id, MemberOrder $order);

pmpro_add_order

Use this hook to execute custom code before a PMPro order has been added.


do_action( 'pmpro_add_order', object $MemberOrder );

pmpro_update_order

Use this hook to execute custom code before updating a PMPro order. This hook returns the MemberOrder object.


add_action("pmpro_update_order", MemberOrder $order);

pmpro_added_order

Use this hook to execute custom code after a PMPro order has been added.


do_action( 'pmpro_added_order', object $MemberOrder );

pmpro_updated_order

Use this hook to execute custom code after a PMPro order has been updated. This hook returns the MemberOrder object.


add_action("pmpro_updated_order", MemberOrder $order);