MStore API 4.23.0 has 31 actions and 104 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 MStore API fires an action
add_action( 'mylisting/get-listings/before-query', function( $args, $arg2, $result ) {
// Your code runs here.
}, 10, 3 );
// Change a value MStore API is about to use
add_filter( 'the_content', function( $post_content ) {
// Change $post_content here.
return $post_content;
}, 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
-
/** * This filter is documented in wp-includes/post-template.php */ apply_filters( 'the_content', $post->post_content ); -
/** * Set our new custom template. */ apply_filters( "{$this->plugin_prefix}override_plugin_custom_template", $this->plugin_directory . $this->p_template_directory . '/' . get_post_meta($post->ID, '_wp_page_template', true) ); -
/** * This filter is documented in wp-includes/post-template.php */ apply_filters( 'get_the_excerpt', $post->post_excerpt, $post ); -
/** * This filter is documented in wp-includes/post-template.php */ apply_filters( 'get_the_guid', $post->guid, $post->ID ); -
/** * Filter the vendor ids that are allowed to manage an order. */ apply_filters( 'mstore_vendor_admin_order_vendor_ids', $vendor_ids, $order ); -
/** * Hook after the search args have been set, but before the query is executed. */ do_action_ref_array( 'mylisting/get-listings/before-query', [&$args, $type ?? null, $result] ); -
/** * Allow hooking before the user authentication process when setting up new * user. */ do_action( 'pmpro_checkout_before_user_auth', $user_id ); -
/** * Filter the end date for the membership/subscription. */ apply_filters( 'pmpro_checkout_end_date', $enddate, $user_id, $pmpro_level, $startdate ); -
/** * Filter the start date for the membership/subscription. */ apply_filters( 'pmpro_checkout_start_date', $startdate, $user_id, $pmpro_level ); -
/** * Filters a term item returned from the API. */ apply_filters( 'rest_prepare_case27_job_listing_tags', $response, $item, $request ); -
/** * Filters the post data for a response. */ apply_filters( 'rest_prepare_job_listing', $response, $post, $request ); -
/** * This filter is documented in wp-includes/post-template.php */ apply_filters( 'the_excerpt', apply_filters('get_the_excerpt', $post->post_excerpt, $post) ); -
/** * Filter whether an object is trashable. */ apply_filters( "woocommerce_rest_{$this->post_type}_object_trashable", $supports_trash, $object ); -
/** * Fires after a single object is deleted or trashed via the REST API. */ do_action( "woocommerce_rest_delete_{$this->post_type}_object", $object, $response, $request ); -
apply_filters( 'b2bking_b2b_group_for_pricing', b2bking()->get_user_group($b2b_user_id), $b2b_user_id ); -
apply_filters( 'woocommerce_session_handler', 'WC_Session_Handler' ); -
apply_filters( 'wcfm_dokan_allowed_order_status', [ "completed", "processing", "on-hold", ] ); -
apply_filters( 'wcfm_is_allow_delivery_note_to_customer', '1' ); -
apply_filters( 'wcfm_order_status_condition', "", "commission" ); -
apply_filters( 'wcml_raw_price_amount', (float) $base_price, $context['currency'] ); -
apply_filters( 'flutter_get_products', $products_arr, $request, $user_id ); -
apply_filters( 'wcfm_is_allow_itemwise_notification', true ); -
apply_filters( 'wcfm_is_show_marketplace_itemwise_orders', true ); -
apply_filters( 'wcfm_message_author', $user_id ); -
apply_filters( 'wcfmmp_is_allow_checkout_user_location', true ); -
do_action( 'woocommerce_order_edit_status', $order_id, $order_status ); -
apply_filters( 'authorize_user', $user_id, $token ); -
apply_filters( 'b2bking_show_information_table_all', false ); -
apply_filters( 'b2bking_tiered_table_discount_uses_sale_price', $product->is_on_sale() ); -
apply_filters( 'b2bking_visibility_taxonomy', 'product_cat' ); -
apply_filters( 'dokan_rest_store_additional_fields', [], $store, $request ); -
apply_filters( 'listeo_event_default_status', 'waiting' ); -
apply_filters( 'mstore_allowed_delivery_roles', array( 'administrator', 'shop_manager', 'driver', 'delivery_boy', 'wcfm_delivery_boy', 'lddfw_driver', ) ); -
apply_filters( 'wc_smart_cod_fee_title', __( 'Cash on delivery', 'mstore-api' ) ); -
apply_filters( 'wcfm_is_allow_order_notification_email', false ); -
wcfm_is_allow_order_update_note_for_customer
filter Used by 3 plugins β Copy link Customise this hookapply_filters( 'wcfm_is_allow_order_update_note_for_customer', "1" ); -
apply_filters( 'wcfm_is_pref_vendor_reviews', true ); -
do_action( 'wcfm_order_status_updated', $order_id, $order_status ); -
do_action( 'wcfmd_after_delivery_boy_assigned', $order_id, $order_item_id, $wcfm_tracking_data, $product_id, $wcfm_delivery_boy, $wcfm_messages ); -
apply_filters( 'wcfmmmp_gross_sales_respect_setting', true ); -
apply_filters( 'woocommerce_bacs_accounts', $bacs->account_details, $order_id ); -
apply_filters( 'wpml_current_language', '' ); -
apply_filters( 'wpml_object_id', $field->ID, 'post', true ); -
apply_filters( 'b2bking_information_table_apply_regular_all', true ); -
apply_filters( 'b2bking_information_table_content_rows', explode(';', $customrows) ); -
do_action( 'b2bkingrequestquotecart' ); -
apply_filters( 'dokan_seller_listing_args', $seller_args, $requested_data ); -
apply_filters( 'flutter_woo_payment_method_response', $result, $value, WC()->cart ); -
apply_filters( 'get_products', $products_arr, $request, $user_id ); -
apply_filters( 'image_make_intermediate_size', $filename ); -
apply_filters( 'listeo_rental_default_status', 'waiting' ); -
apply_filters( 'listeo_service_default_status', 'waiting' ); -
apply_filters( 'listeo_service_slots_default_status', 'waiting' ); -
apply_filters( 'mstore_allowed_vendor_admin_roles', array( 'administrator', 'shop_manager', 'seller', 'vendor', 'wcfm_vendor', 'wcfm_vendor_staff', 'dc_vendor', 'wc_product_vendors_admin_vendor', 'wc_product_vendors_manager_vendor', ) ); -
apply_filters( 'mstore_api_enforce_payment_order_key', get_option('mstore_api_enforce_payment_order_key', 'no') === 'yes' ); -
apply_filters( 'mstore_customer_order_status_allowlist', $statuses ); -
apply_filters( 'mstore_facebook_app_id', $app_id ); -
apply_filters( 'mstore_google_client_ids', $ids ); -
do_action( 'pmpro_after_checkout', $user_id, $morder ); -
pmpro_checkout_before_change_membership_level
action Used by 2 plugins β Copy link Customise this hookdo_action( 'pmpro_checkout_before_change_membership_level', $user_id, $morder ); -
apply_filters( 'pmpro_checkout_new_user_array', array( "user_login" => $username, "user_pass" => $password, "user_email" => $bemail, "first_name" => $first_name, "last_name" => $last_name ) ); -
apply_filters( 'pmpro_checkout_order_free', $morder ); -
apply_filters( 'pmpro_checkout_signon_secure', force_ssl_admin() ); -
apply_filters( 'pmpro_confirmation_message', $confirmation_message, $invoice ); -
do_action( 'pmpro_discount_code_used', $discount_code_id, $user_id, $code_order_id ); -
apply_filters( 'pmpro_levels_array', $pmpro_levels ); -
apply_filters( 'pmpro_new_user', '', $new_user_array ); -
apply_filters( 'pmpro_require_billing', $pmpro_requirebilling, $pmpro_level ); -
apply_filters( 'pmpro_send_checkout_emails', true ); -
apply_filters( 'pmpro_setup_new_user', true, $user_id, $new_user_array, $pmpro_level ); -
apply_filters( 'pmpro_wp_new_user_notification', true, $user_id, $pmpro_level->id ); -
apply_filters( 'retrieve_password_message', $message, $key, $user_login, $user_data ); -
apply_filters( 'retrieve_password_title', $title, $user_login, $user_data ); -
apply_filters( 'validate_wallet_withdrawal_request', $response ); -
apply_filters( 'wc_points_rewards_my_account_points_events', 5, $user_id ); -
apply_filters( 'wc_session_expiration', 60 * 60 * 48 ); -
apply_filters( 'wc_session_expiring', 60 * 60 * 47 ); -
apply_filters( 'wc_smart_cod_fee', $fee_obj ); -
do_action( 'wcfm_after_new_order_vendor_notification', $message_to, $product_id, $order_id ); -
apply_filters( 'wcfm_delivery_boys', $delivery_boys_array, $order_id, $order_item_id, $delivery_boys ); -
apply_filters( 'wcfm_is_admin_fee_mode', false ); -
apply_filters( 'wcfm_is_allow_chatbox', true ); -
apply_filters( 'wcfm_is_allow_delivery_boy_as_meta', true ); -
apply_filters( 'wcfm_is_allow_email_verification', true ); -
apply_filters( 'wcfm_is_pref_chatbox', true ); -
do_action( 'wcfm_manual_order_processed', $data['id'], $order, $order ); -
wcfm_new_order_vendor_notification_message
filter Used by 2 plugins β Copy link Customise this hookapply_filters( 'wcfm_new_order_vendor_notification_message', $wcfm_messages, $order_id, $message_to ); -
wcfmapi_rest_prepare_store_vendors_objects
filter Used by 2 plugins β Copy link Customise this hookapply_filters( 'wcfmapi_rest_prepare_store_vendors_objects', $response, $request ); -
do_action( 'wcfmd_after_order_item_mark_delivered', $delivery_detail->order_id, $delivery_detail->product_id, $delivery_detail ); -
do_action( 'wcfmd_after_order_mark_delivered', $delivery_detail->order_id, $delivery_detail ); -
apply_filters( 'wcfmmp_store_address_string', $store_address, $vendor_data ); -
apply_filters( 'wcfmmp_store_address_string_format', "{address1}, {address2}, {city}, {state}, {country} - {zip}" ); -
apply_filters( 'wcfmmp_store_vendor_data', $this->get_shop_info(), $this->id, $branch_id ); -
apply_filters( 'woo_wallet_disallow_negative_transaction', (woo_wallet()->wallet->get_wallet_balance(get_current_user_id(), 'edit') <= 0 || $order->get_total('edit') > woo_wallet()->wallet->get_wallet_balance(get_current_user_id(), 'edit')), $order->get_total('edit'), woo_wallet()->wallet->get_wallet_balance(get_current_user_id(), 'edit') ); -
apply_filters( 'woo_wallet_order_payment_description', __('For order payment #', 'mstore-api') . $order->get_order_number(), $order ); -
do_action( 'woo_wallet_payment_processed', $order->get_id(), $wallet_response ); -
apply_filters( 'woo_wallet_referral_handel', 'wwref' ); -
apply_filters( 'woo_wallet_withdrawal_requested_amount', floatval($amount) ); -
do_action( 'woo_wallet_withdrawal_update_meta_data', $withdrawal_id ); -
apply_filters( 'woocommerce__auction_history_data', $product->auction_history() ); -
apply_filters( 'woocommerce_add_cart_item', array_merge( $cart_item_data, array( 'key' => $cart_item_key, 'product_id' => $product_id, 'variation_id' => $variation_id, 'variation' => $variation, 'quantity' => $quantity, 'data' => $product_data, 'data_hash' => wc_get_cart_item_data_hash($product_data), ) ), $cart_item_key ); -
apply_filters( 'woocommerce_add_cart_item_data', $cart_item_data, $product_id, $variation_id, $quantity ); -
do_action( 'woocommerce_add_to_cart', $cart_item_key, $product_id, $quantity, $variation_id, $variation, $cart_item_data ); -
apply_filters( 'woocommerce_add_to_cart_quantity', $quantity, $product_id ); -
woocommerce_add_to_cart_sold_individually_found_in_cart
filter Used by 6 plugins β Copy link Customise this hookapply_filters( 'woocommerce_add_to_cart_sold_individually_found_in_cart', $cart_item_key && WC()->cart->cart_contents[$cart_item_key]['quantity'] > 0, $product_id, $variation_id, $cart_item_data, $cart_id ); -
woocommerce_add_to_cart_sold_individually_quantity
filter Used by 4 plugins β Copy link Customise this hookapply_filters( 'woocommerce_add_to_cart_sold_individually_quantity', 1, $quantity, $product_id, $variation_id, $cart_item_data ); -
do_action( 'woocommerce_after_order_notes' ); -
do_action( 'woocommerce_api_myfatoorah_complete' ); -
do_action( 'woocommerce_before_order_notes' ); -
apply_filters( 'woocommerce_cart_contents_changed', WC()->cart->cart_contents ); -
apply_filters( 'woocommerce_cart_item_class', 'cart_item', $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_subtotal', WC()->cart->get_product_subtotal($_product, $cart_item['quantity']), $cart_item, $cart_item_key ); -
woocommerce_checkout_after_customer_details
action Used by 67 plugins β Copy link Customise this hookdo_action( 'woocommerce_checkout_after_customer_details' ); -
do_action( 'woocommerce_checkout_after_order_review' ); -
woocommerce_checkout_before_customer_details
action Used by 67 plugins β Copy link Customise this hookdo_action( 'woocommerce_checkout_before_customer_details' ); -
woocommerce_checkout_before_order_review
action Used by 66 plugins β Copy link Customise this hookdo_action( 'woocommerce_checkout_before_order_review' ); -
apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf('× %s', $cart_item['quantity']) . '</strong>', $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_checkout_cart_item_visible', true, $cart_item, $cart_item_key ); -
woocommerce_cod_process_payment_order_status
filter Used by 7 plugins β Copy link Customise this hookapply_filters( 'woocommerce_cod_process_payment_order_status', $order->has_downloadable_item() ? 'on-hold' : 'processing', $order ); -
woocommerce_get_filtered_term_product_counts_query
filter Used by 12 plugins β Copy link Customise this hookapply_filters( 'woocommerce_get_filtered_term_product_counts_query', $query ); -
apply_filters( 'woocommerce_order_button_html', '<input type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="" />' ); -
do_action( 'woocommerce_review_order_after_payment' ); -
do_action( 'woocommerce_review_order_after_submit' ); -
do_action( 'woocommerce_review_order_before_payment' ); -
do_action( 'woocommerce_review_order_before_submit' ); -
apply_filters( 'woocommerce_simple_auctions_displayname', get_userdata($history_value->userid)->display_name, $product ); -
woocommerce_store_api_checkout_update_order_from_request
action Used by 3 plugins β Copy link Customise this hookdo_action( 'woocommerce_store_api_checkout_update_order_from_request', $object, $request ); -
do_action( 'wp_ajax_nopriv_digits_check_mob' ); -
apply_filters( 'wp_generate_attachment_metadata', $attachment, $attachment_id, 'create' ); -
wp_rest_api_controller_api_property_value
filter Used by 2 plugins β Copy link Customise this hookapply_filters( 'wp_rest_api_controller_api_property_value', $meta_fields[$rest_api_key], $term->term_id, $original_key, true ); -
apply_filters( 'yith_wcbm_badges_to_show_on_product', $badges_to_show, $product ); -
apply_filters( 'yith_ywbc_barcode_src', $barcode_img_path ? esc_url( YITH_YWBC()->get_public_file_path( $barcode ) ) : 'data:image/png;base64,' . $barcode->image, $barcode_value, $barcode_protocol, 'default' );
Generated from MStore API'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: