PurchaseDesk 1.0.15 has 14 actions and 18 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 PurchaseDesk fires an action
add_action( 'erenlabs_product_cost_updated', function( $id, $cost, $old, $context ) {
// Your code runs here.
}, 10, 4 );
// Change a value PurchaseDesk is about to use
add_filter( 'purchasedesk_paid_support', 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
-
/** * Fires after any suite plugin changes a product's cost. */ do_action( 'erenlabs_product_cost_updated', $id, $cost, $old, $context ); -
/** * Fires after any suite plugin changes stock. */ do_action( 'erenlabs_stock_moved', $movement ); -
/** * Charts and supplier analytics, added by Pro. */ do_action( 'purchasedesk_dashboard_charts' ); -
/** * Money KPIs, prepended by Pro. Nothing hooks this in the free build. */ do_action( 'purchasedesk_dashboard_kpis' ); -
/** * Fires after a line has been received and stock written. */ do_action( 'purchasedesk_line_received', $line_id, $qty, array( 'order_id' => (int) $order->id, 'receipt_id' => $receipt_id, 'before' => $before, 'after' => $after, ) ); -
/** * Extra actions for this order (Pro adds Print here). Nothing hooks it in the * free build, so no button and no code path that renders one. */ do_action( 'purchasedesk_order_actions', $id ); -
/** * Fires after a purchase order has been emailed. */ do_action( 'purchasedesk_order_emailed', $order_id, $to ); -
/** * Fires after a receipt has been reversed. */ do_action( 'purchasedesk_receipt_reversed', $receipt_id, $reversal_id ); -
/** * Fires in the reorder table header so a Pro module can add a leading checkbox * column that lines up with its per-row checkbox. */ do_action( 'purchasedesk_reorder_head' ); -
/** * Fires at the start of each reorder row so a Pro module can add a selection * checkbox for its bulk action. */ do_action( 'purchasedesk_reorder_row', $row ); -
/** * Fires at the top of the reorder table so a Pro module can add a bulk action * toolbar (e.g. "generate purchase orders"). */ do_action( 'purchasedesk_reorder_toolbar', $due ); -
/** * Fires after a stock adjustment has been written. */ do_action( 'purchasedesk_stock_adjusted', $id, array( 'product_id' => $product->get_id(), 'delta' => $delta, 'reason' => $reason, 'before' => $before, 'after' => $after, ) ); -
apply_filters( 'purchasedesk_paid_support', false ); -
apply_filters( 'erenlabs_cost_field_owner', $this->core->slug() ); -
apply_filters( 'erenlabs_cost_mirror_keys', array( self::PRIMARY, self::MIRROR ) ); -
apply_filters( 'erenlabs_cost_sources', self::BRIDGES ); -
apply_filters( 'erenlabs_product_cost', $cost, $product ); -
apply_filters( 'erenlabs_product_cost_pre', null, $product ); -
apply_filters( 'erenlabs_suite_modules', array() ); -
apply_filters( 'plugin_locale', determine_locale(), $domain ); -
apply_filters( 'purchasedesk_barcode_keys', self::BARCODE_KEYS ); -
apply_filters( 'purchasedesk_order_email_body', $out, $order, $lines ); -
apply_filters( 'purchasedesk_order_email_subject', $subject, $order ); -
apply_filters( 'purchasedesk_order_reference', self::default_reference( $id ), $id ); -
apply_filters( 'purchasedesk_pricing_tiers', array( array( 'label' => __( 'Single site', 'purchasedesk-for-woocommerce' ), 'sites' => 1, 'price' => 79, 'pricing_id' => 84108, 'popular' => false, ), array( 'label' => sprintf( __( '%d sites', 'purchasedesk-for-woocommerce' ), 5 ), 'sites' => 5, 'price' => 199, 'pricing_id' => 84110, 'popular' => true, ), array( 'label' => sprintf( __( '%d sites', 'purchasedesk-for-woocommerce' ), 20 ), 'sit... ); -
apply_filters( 'purchasedesk_render_view', false, $view, $id, $this->core ); -
apply_filters( 'purchasedesk_reorder_scan_cap', 2000 ); -
apply_filters( 'purchasedesk_suite_url', 'https://checkout.freemius.com/bundle/38966/plan/64757/' ); -
apply_filters( 'purchasedesk_support_url', self::FORUM ); -
apply_filters( 'purchasedesk_upgrade_url', 'https://erenlabs.net/plugins/purchasedesk/' );
Generated from PurchaseDesk'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: