wePOS 2.0.3 has 13 actions and 40 filters, read directly from its source code on Nov 18, 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 wePOS fires an action
add_action( 'after_appsero_license_section', function() {
// Your code runs here.
}, 10, 1 );
// Change a value wePOS is about to use
add_filter( 'wepos_access_display_roles', function( $roles ) {
// Change $roles here.
return $roles;
}, 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
-
/** * Filter the role slugs shown in the Access matrix. */ apply_filters( 'wepos_access_display_roles', $roles ); -
/** * Filters the wePOS admin header data. */ apply_filters( 'wepos_admin_header_info', [ 'logo_url' => WEPOS_ASSETS . '/images/logo.svg', 'version' => WEPOS_VERSION, 'is_pro_active' => function_exists( 'wepos_pro' ), 'pro_version' => defined( 'WEPOS_PRO_VERSION' ) ? WEPOS_PRO_VERSION : '', 'upgrade_url' => Premium::is_visible() ? admin_url( Premium::get_page_url() ) : Premium::UPGRADE_URL, 'docs_url' => 'https://dokan.co/docs/wepos/getting-started/', 'support_url' => 'https://dok... ); -
/** * Filter the CSS URLs injected into the admin Shadow DOM. */ apply_filters( 'wepos_admin_shadow_css_urls', $admin_css_urls ); -
/** * Filter the list of caps subject to the vendor → staff cascade. */ apply_filters( 'wepos_cascadable_staff_caps', $caps ); -
/** * Allow extensions to intercept settings saves. */ apply_filters( 'wepos_pre_save_settings', null, $outlet_id, $params, $request ); -
/** * Hash routes that only exist in the React admin and must never be routed to * the Vue shell. */ apply_filters( 'wepos_react_only_hash_routes', [] ); -
/** * Filter wePOS product query arguments before fetching products. */ apply_filters( 'wepos_rest_product_query_args', $args, $request ); -
/** * Filter settings before returning to the client. */ apply_filters( 'wepos_settings_for_user', $settings, $outlet_id, $request ); -
apply_filters( 'wepos_is_vendor_staff', false ); -
apply_filters( 'wepos_access_page_capabilities', [ 'wepos_page_appearance', 'wepos_page_settings', 'wepos_page_view_pos', ] ); -
apply_filters( 'appsero_is_local', $is_local ); -
apply_filters( 'wepos_localize_data', [ 'rest' => array( 'root' => esc_url_raw( get_rest_url() ), 'nonce' => wp_create_nonce( 'wp_rest' ), 'wcversion' => 'wc/v3', 'posversion' => 'wepos/v1', ), 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'wepos_nonce' ), 'libs' => [], 'routeComponents' => array( 'default' => null ), 'routes' => $this->get_vue_admin_routes(), 'i18n' => array( 'wepos' => wepos_get_jed_loca... ); -
apply_filters( "{$this->client->slug}_tracker_data", $data ); -
do_action( "{$this->client->slug}_tracker_optin", $this->get_tracking_data() ); -
do_action( "{$this->client->slug}_tracker_optout" ); -
do_action( "{$this->client->slug}_uninstall_reason_submitted", $data ); -
do_action( 'after_appsero_license_section' ); -
apply_filters( 'appsero_custom_deactivation_reasons', [], $this->client ); -
apply_filters( 'appsero_endpoint', 'https://api.appsero.com' ); -
do_action( 'before_appsero_license_section' ); -
apply_filters( 'wepos_active_plugins', get_option( 'active_plugins' ) ); -
apply_filters( 'wepos_admin_react_localize_data', [ 'adminCssUrls' => $admin_css_urls, 'access_data' => $access_data, 'allowed_pages' => wepos_get_user_allowed_pages(), 'rest' => [ 'root' => esc_url_raw( get_rest_url() ), 'nonce' => wp_create_nonce( 'wp_rest' ), 'wcversion' => 'wc/v3', 'posversion' => 'wepos/v1', ], 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'wepos_nonce' ), 'admin_url' => admin_url(), 'assets_url'... ); -
apply_filters( 'wepos_admin_routes', $routes ); -
do_action( 'wepos_after_saving_settings', $option_name, $option_value ); -
do_action( 'wepos_before_saving_settings', $option_name, $option_value ); -
apply_filters( 'wepos_cash_icon', '' ); -
apply_filters( 'wepos_default_role_capabilities', $defaults ); -
apply_filters( 'wepos_dokan_excluded_product_ids', [ get_option( 'dokan_advertisement_product_id', 0 ), get_option( 'dokan_reverse_withdrawal_product_id', 0 ), ], $request, $args ); -
apply_filters( 'wepos_dokan_excluded_product_types', [ 'product_pack' ], $request, $args ); -
do_action( 'wepos_enqueue_scripts' ); -
apply_filters( 'wepos_frontend_permissions', false ); -
do_action( 'wepos_load_admin_scripts' ); -
do_action( 'wepos_load_forntend_scripts' ); -
do_action( 'wepos_loaded' ); -
apply_filters( 'wepos_page_document_title', __( 'Point of Sale', 'wepos' ) ); -
apply_filters( 'wepos_payment_gateway', array_keys( $available_gateway ) ); -
apply_filters( 'wepos_register_gateway', [ 'WeDevs\WePOS\Gateways\Cash' => WEPOS_INCLUDES . '/Gateways/Cash.php' ] ); -
apply_filters( 'wepos_resolve_vendor_id', 0, $user_id ); -
apply_filters( "wepos_rest_{$this->base}_check_permissions", $hasPermission, $request, $order ); -
apply_filters( 'wepos_rest_api_class_map', array( WEPOS_INCLUDES . '/REST/PaymentController.php' => '\WeDevs\WePOS\REST\PaymentController', WEPOS_INCLUDES . '/REST/SettingController.php' => '\WeDevs\WePOS\REST\SettingController', WEPOS_INCLUDES . '/REST/AccessController.php' => '\WeDevs\WePOS\REST\AccessController', WEPOS_INCLUDES . '/REST/TaxController.php' => '\WeDevs\WePOS\REST\TaxController', WEPOS_INCLUDES . '/REST/CustomerControll... ); -
apply_filters( 'wepos_rest_manager_permissions', false ); -
apply_filters( 'wepos_rest_route_page_map', [ '/wepos/v1/settings' => 'settings', ] ); -
apply_filters( 'wepos_save_settings_value', $option_value ); -
apply_filters( 'wepos_settings_fields', $settings_fields ); -
apply_filters( 'wepos_settings_sections', $sections ); -
apply_filters( 'wepos_shop_order_pos_column_title', __( 'Is POS', 'wepos' ) ); -
apply_filters( 'wepos_template_path', 'wepos/' ); -
apply_filters( 'woocommerce_cart_product_subtotal', $product_subtotal, $product, $quantity, $this ); -
apply_filters( 'woocommerce_session_handler', 'WC_Session_Handler' );
Generated from wePOS'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: