LightPOS 0.1.54 has 17 actions and 29 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 LightPOS fires an action
add_action( 'minimal_pos_checkout_order_item_created', function( $item, $cart_item, $order ) {
// Your code runs here.
}, 10, 3 );
// Change a value LightPOS is about to use
add_filter( 'lightpos_tax_guard_alert_recipients', 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
-
/** * Filters who is emailed when a POS sale is refused for missing VAT. */ apply_filters( 'lightpos_tax_guard_alert_recipients', [ get_option( 'admin_email' ) ] ); -
/** * Whether LightPOS refuses sales whose taxable lines have no VAT. */ apply_filters( 'lightpos_tax_guard_enabled', true ); -
/** * Filters the address LightPOS sales are taxed at. */ apply_filters( 'lightpos_tax_location', $base, is_array( $address ) ? $address : [], $customer ); -
/** * Fires after LightPOS persists cart item meta onto an order item. */ do_action( 'minimal_pos_checkout_order_item_created', $item, $cart_item, $order ); -
/** * Filters the checkout response payload before it is sent to the POS browser. */ apply_filters( 'minimal_pos_checkout_response', $order_data, $order, $data ); -
/** * Filters the JS translation catalog exposed as * `window.MinimalPOSConfig.i18n`, consumed by the frontend's `t(key, * fallback)` helper. Add-ons that add their own frontend strings (e.g. via * patched-in markup in pos.js) can merge their own keys/translations in here. */ apply_filters( 'minimal_pos_config', $config ); -
/** * Enables the optional WC Multi-Stock integration for LightPOS. */ apply_filters( 'minimal_pos_enable_wcms_stock_integration', false ); -
/** * Filters the available POS filter options. */ apply_filters( 'minimal_pos_filter_options', $options ); -
/** * Filters the POS order-detail response payload. */ apply_filters( 'minimal_pos_order_response', $data, $order ); -
/** * Filters the stock payload exposed to the LightPOS frontend. */ apply_filters( 'minimal_pos_product_stock_data', $stock_data, $product, $parent_product ); -
/** * Fires with one measurement row per profiled request. */ do_action( 'minimal_pos_profile_row', [ 'method' => $request->get_method(), 'route' => $request->get_route(), 'params' => $request->get_query_params(), 'ms' => round( $millis, 1 ), 'queries' => $queries, 'peak_mb' => round( $peak_mb, 1 ), 'bytes' => $bytes, ] ); -
/** * Fires after the receipt header/meta block. */ do_action( 'minimal_pos_receipt_after_meta', $order, $minimal_pos_settings ); -
/** * Fires before the receipt print button. */ do_action( 'minimal_pos_receipt_before_actions', $order, $minimal_pos_settings ); -
/** * Filters the search definition for a whitelisted POS product meta key. */ apply_filters( 'minimal_pos_search_field_definition', $definition, $meta_key, $acf_field ); -
/** * Filters the POS product search placeholder. */ apply_filters( 'minimal_pos_search_placeholder', $placeholder, $labels ); -
/** * Bulk, live WCMS availability for canonical product/variation pairs. */ apply_filters( 'minimal_pos_wcms_bulk_availability', null, array_values( $missing ) ); -
do_action( 'minimal_pos_prefetch_stock', $products, null ); -
apply_filters( 'minimal_pos_add_cart_item_data', array_merge( $cart_item_data, [ '_minimal_pos_item' => true, ] ), $product, $quantity, $product_id, $variation_id, $variation ); -
do_action( 'minimal_pos_after_checkout', $order->get_id(), $order_data ); -
do_action( 'minimal_pos_after_render' ); -
do_action( 'minimal_pos_before_render' ); -
apply_filters( 'minimal_pos_capabilities', $capabilities ); -
apply_filters( 'minimal_pos_cart_item_response', $item_data, $cart_item, $product ); -
apply_filters( 'minimal_pos_cashier_order_capabilities', $capabilities ); -
apply_filters( 'minimal_pos_cashier_product_capabilities', $capabilities ); -
apply_filters( 'minimal_pos_cashier_stock_capabilities', $capabilities ); -
apply_filters( 'minimal_pos_payment_methods', $methods ); -
apply_filters( 'minimal_pos_product_query_args', $query_args, $args ); -
apply_filters( 'minimal_pos_product_response', $data, $product ); -
do_action( 'minimal_pos_read_scope_begin' ); -
do_action( 'minimal_pos_read_scope_end' ); -
apply_filters( 'minimal_pos_skip_remote_user_sync', true ); -
apply_filters( 'minimal_pos_template_paths', [ trailingslashit( get_stylesheet_directory() ) . 'lightpos/' . ltrim( $template_name, '/' ), trailingslashit( get_stylesheet_directory() ) . 'minimal-pos/' . ltrim( $template_name, '/' ), trailingslashit( MINIMAL_POS_PATH ) . 'templates/' . ltrim( $template_name, '/' ), ] ); -
apply_filters( 'minimal_pos_validate_cart_item_quantity', $validation, (string) $cart_item_key, max( 0, $quantity ), $cart_item ); -
apply_filters( 'minimal_pos_validate_product_stock', $validation, $product, $quantity, $product_id, $variation_id, $variation, $cart_item_data ); -
woocommerce_adjust_non_base_location_prices
filter Used by 50 plugins → Copy link Customise this hookapply_filters( 'woocommerce_adjust_non_base_location_prices', true ); -
do_action( 'woocommerce_after_calculate_totals', $cart ); -
do_action( 'woocommerce_before_calculate_totals', $cart ); -
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); -
apply_filters( 'woocommerce_session_handler', 'WC_Session_Handler' ); -
do_action( 'wpml_register_single_string', 'lightpos-point-of-sale-pos-for-woocommerce', $string_name, $title ); -
apply_filters( 'wpml_translate_single_string', $title, 'lightpos-point-of-sale-pos-for-woocommerce', $string_name );
Generated from LightPOS'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: