Storefold 1.3.0 has 66 actions and 58 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 Storefold fires an action
add_action( 'storefold_email_new_order_sent', function( $arg1, $arg2 ) {
// Your code runs here.
}, 10, 2 );
// Change a value Storefold is about to use
add_filter( 'storefold_email', 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 every outgoing marketplace email before sending. Return an empty * value to drop the email entirely. */ apply_filters( 'storefold_email', array( 'to' => $to, 'subject' => $subject, 'heading' => $heading, 'body' => $body, ) ); -
/** * Fires when the new order email was sent to a vendor. */ do_action( 'storefold_email_new_order_sent', $order->get_id(), $vendor->get_id() ); -
/** * Fires after the approval email was sent to a vendor. */ do_action( 'storefold_email_vendor_approved_sent', $vendor_id ); -
/** * Filters whether a marketplace email should be sent at all. */ apply_filters( 'storefold_send_email', true, $email ); -
/** * Fires right after a store name in "Sold by" lines and store cards, so * extensions can add badges (for example Verified seller). */ do_action( 'storefold_store_badges', $vendor, 'product' ); -
/** * Filters the "Needs your attention" items on the marketplace overview. Each * item has a count, a label with a %d placeholder and a url. */ apply_filters( 'storefold_admin_inbox_items', $items ); -
/** * Fires at the top of the settings screen, for extension notices. */ do_action( 'storefold_admin_settings_notices' ); -
/** * Fires when the marketplace settings form is saved, after the nonce and * capability checks passed. Extensions read and store their own fields here. */ do_action( 'storefold_admin_settings_save' ); -
/** * Fires after the core settings sections, inside the settings form. Extensions * print their own sections here and save them on * storefold_admin_settings_save. */ do_action( 'storefold_admin_settings_sections' ); -
/** * Fires to print the cell of an extra admin vendor list column. */ do_action( 'storefold_admin_vendor_column', $key, $vendor ); -
/** * Filters the extra columns of the admin vendor list, keyed by id. Print the * cell content on storefold_admin_vendor_column. */ apply_filters( 'storefold_admin_vendor_columns', array() ); -
/** * Fires on the admin vendor screen after the application details, so * extensions can add their own panels. */ do_action( 'storefold_admin_vendor_detail', $vendor ); -
/** * Fires inside the store details form on the admin vendor screen. Print extra * table rows; save them on storefold_admin_vendor_profile_save. */ do_action( 'storefold_admin_vendor_profile_fields', $vendor ); -
/** * Fires when the vendor profile form on the admin vendor screen is saved, * after the nonce and capability checks passed. */ do_action( 'storefold_admin_vendor_profile_save', $vendor_id ); -
/** * Filters the query arguments of the admin vendor list. */ apply_filters( 'storefold_admin_vendor_query_args', array( 'status' => $status, 'search' => $search, 'number' => $per_page + 1, 'offset' => ( $paged - 1 ) * $per_page, ) ); -
/** * Filters the status links above the admin vendor list. Each view has a label, * url, current flag and optional count. */ apply_filters( 'storefold_admin_vendor_views', $views ); -
/** * Fires after the active dashboard section rendered. */ do_action( 'storefold_after_dashboard_section', $section, $vendor ); -
/** * Fires after store content. */ do_action( 'storefold_after_store_content', $storefold_store ); -
/** * Fires after an announcement was published to vendors. */ do_action( 'storefold_announcement_published', (int) $wpdb->insert_id ); -
/** * Filters the balance a vendor can withdraw right now. Extensions that lock * recent earnings subtract them here. */ apply_filters( 'storefold_available_balance', $available, $vendor_id ); -
/** * Fires before the active dashboard section renders. */ do_action( 'storefold_before_dashboard_section', $section, $vendor ); -
/** * Fires right before a vendor product is saved from the dashboard. */ do_action( 'storefold_before_product_save', $product, $vendor, 0 === $product_id ); -
/** * Fires above the product grid on a store page. */ do_action( 'storefold_before_store_products', $storefold_store ); -
/** * Filters whether a withdrawal request may go ahead. Return a WP_Error to * refuse it with a message. */ apply_filters( 'storefold_can_request_withdrawal', true, $vendor, $amount, $method ); -
/** * Filters the vendor that sells a cart item. Useful when several vendors can * sell the same catalog product. */ apply_filters( 'storefold_cart_item_vendor', $vendor, $cart_item ); -
/** * Filters the parent order statuses copied down to sub-orders. */ apply_filters( 'storefold_cascade_statuses', array( 'processing', 'on-hold', 'cancelled', 'refunded', 'failed', 'pending', 'completed' ) ); -
/** * Filters the commission the marketplace keeps for one order line. */ apply_filters( 'storefold_commission_calculated', round( $commission, wc_get_price_decimals() ), $line_total, $quantity, $rule ); -
/** * Fires after a commission row is deleted. */ do_action( 'storefold_commission_deleted', (int) $row->id, (int) $row->vendor_id, (int) $row->order_id ); -
/** * Fires after the earnings of a vendor order were credited. */ do_action( 'storefold_commission_earned', $order_id, $vendor_id, $total ); -
/** * Fires after a commission row was stored. */ do_action( 'storefold_commission_recorded', (int) $wpdb->insert_id, $order->get_id(), $vendor->get_id() ); -
/** * Fires after vendor earnings were reversed for a refund. */ do_action( 'storefold_commission_reversed', $order_id, $vendor_id, $total_reversed ); -
/** * Filters a commission row before it is stored. */ apply_filters( 'storefold_commission_row', array( 'order_id' => $order->get_id(), 'parent_order_id' => $order->get_parent_id(), 'order_item_id' => $item_id, 'vendor_id' => $vendor->get_id(), 'product_id' => $product_id, 'quantity' => $item->get_quantity(), 'line_total' => $line_total, 'shipping_amount' => $shipping_amount, 'tax_amount' => $tax_amount, 'commission_amount' => $commission, 'vendor_earning' => $vendor_earning, 'currency' =>... ); -
/** * Filters the commission rule used for one product sold by a vendor. A rule * has a type (percentage, fixed or percentage_fixed), a rate, a fixed amount * and a source label shown in the audit snapshot. */ apply_filters( 'storefold_commission_rule', $rule, $product_id, $vendor ); -
/** * Filters the order statuses that cancel pending vendor earnings. */ apply_filters( 'storefold_commission_void_statuses', array( 'cancelled', 'failed' ) ); -
/** * Fires after a vendor saved a coupon. */ do_action( 'storefold_coupon_saved', $coupon_id, $vendor->get_id() ); -
/** * Filters the store the current user manages. Accounts that work for a store * they do not own can resolve to that store here. */ apply_filters( 'storefold_current_vendor', Storefold_Vendor::get_by_user( $user_id ), $user_id ); -
/** * Fires after a vendor sent a note to the customer. */ do_action( 'storefold_customer_note_added', $order->get_id(), $vendor->get_id(), $note ); -
/** * Fires above the onboarding checklist on the dashboard overview. */ do_action( 'storefold_dashboard_overview_notices', $vendor ); -
/** * Filters the dashboard sections reserved for the store owner. */ apply_filters( 'storefold_dashboard_owner_sections', array( 'earnings', 'withdrawals', 'settings' ) ); -
/** * Filters the dashboard section about to render. */ apply_filters( 'storefold_dashboard_section', $section ); -
/** * Filters the capability each dashboard section requires. */ apply_filters( 'storefold_dashboard_section_caps', $caps ); -
/** * Filters the dashboard sections and the template each one renders. */ apply_filters( 'storefold_dashboard_sections', $this->sections ); -
/** * Fires when the plugin is deactivated, before rewrite rules are flushed. */ do_action( 'storefold_deactivated' ); -
/** * Filters the chapters of the built-in documentation. Each chapter has an id, * title, optional intro and a list of entries, each with an optional id, a * term and a plain-text description. */ apply_filters( 'storefold_docs_sections', $sections ); -
/** * Filters the marketplace email classes registered with WooCommerce. */ apply_filters( 'storefold_email_classes', $classes ); -
/** * Fires after the frontend marketplace assets were enqueued. */ do_action( 'storefold_enqueue_frontend_assets' ); -
/** * Filters whether vendor sub-orders are kept out of WooCommerce Analytics, so * a split order is counted once. */ apply_filters( 'storefold_exclude_suborders_from_analytics', true ); -
/** * Filters the roles kept out of wp-admin and limited to their own media. */ apply_filters( 'storefold_frontend_only_roles', array( 'storefold_vendor' ) ); -
/** * Filters the marketplace health checks. Each check has an ok flag, a label * and a plain-language hint. */ apply_filters( 'storefold_health_checks', $checks ); -
/** * Fires after the core installation routine ran. */ do_action( 'storefold_installed' ); -
/** * Filters whether the current request shows a marketplace surface and should * load the frontend styles and scripts. */ apply_filters( 'storefold_is_marketplace_page', $is_page ); -
/** * Filters whether the current dashboard user owns the store. Accounts that * work for a store without owning it should return false. */ apply_filters( 'storefold_is_store_owner', true, get_current_user_id() ); -
/** * Fires after a ledger entry was appended. */ do_action( 'storefold_ledger_entry_added', $entry_id, $vendor_id, $entry_type, $amount ); -
/** * Fires once every core component is constructed. Extensions boot here. */ do_action( 'storefold_loaded', $this ); -
/** * Filters the file used for a Storefold template. */ apply_filters( 'storefold_locate_template', $template, $name ); -
/** * Filters the status given to a product a vendor creates. */ apply_filters( 'storefold_new_product_status', $new_status, $vendor ); -
/** * Filters the onboarding checklist steps. Each step has a label, a done flag * and a url. */ apply_filters( 'storefold_onboarding_steps', $steps, $vendor ); -
/** * Fires when a single-vendor order is assigned to its vendor without creating * a sub-order. */ do_action( 'storefold_order_assigned', $order->get_id(), $vendor->get_id() ); -
/** * Filters whether an order line is kept by the marketplace and left out of * vendor sub-orders and commissions. */ apply_filters( 'storefold_order_item_excluded', false, $item ); -
/** * Filters the vendor that sells an order line. Useful when several vendors can * sell the same catalog product. */ apply_filters( 'storefold_order_item_vendor', $vendor, $item ); -
/** * Filters whether an order is split into vendor sub-orders. */ apply_filters( 'storefold_order_should_split', true, $order ); -
/** * Fires after an order was split into vendor sub-orders. */ do_action( 'storefold_order_split', $order->get_id() ); -
/** * Filters the address of a marketplace page. */ apply_filters( 'storefold_page_url', $url, $page ); -
storefold_payout_gateway_fieldset_{$storefold_gateway->get_key()}
action Copy link Customise this hook/** * Fires for a payout method that has no simple form fields, so the gateway can * print its own fieldset (for example a connect button). */ do_action( "storefold_payout_gateway_fieldset_{$storefold_gateway->get_key()}", $vendor, $storefold_gateway ); -
/** * Fires after a vendor deleted (trashed) one of their products. */ do_action( 'storefold_product_deleted', $product_id, $vendor->get_id() ); -
/** * Filters whether the vendor may save this product. Return a WP_Error to stop * the save; when the error data holds a "section" key the vendor is sent to * that dashboard section with the error message. */ apply_filters( 'storefold_product_save_check', true, $vendor, $product_id ); -
/** * Fires after a vendor saved a product from the dashboard. */ do_action( 'storefold_product_saved', $saved_id, $vendor->get_id() ); -
/** * Filters how many stores the Products list vendor filter offers. */ apply_filters( 'storefold_product_vendor_filter_limit', 200 ); -
/** * Filters the payout gateways vendors can be paid with. Add objects * implementing Storefold_Payout_Gateway_Interface. */ apply_filters( 'storefold_register_payout_gateways', $gateways ); -
/** * Fires after any extra application questions in the vendor registration form. */ do_action( 'storefold_registration_after_custom_fields' ); -
/** * Fires before any extra application questions in the vendor registration * form. */ do_action( 'storefold_registration_before_custom_fields' ); -
/** * Filters the profile collected by the registration form, after the nonce was * verified. Return a WP_Error to reject the application with its message. */ apply_filters( 'storefold_registration_profile', $profile ); -
/** * Filters the public store data returned by the REST API. */ apply_filters( 'storefold_rest_store_data', array( 'id' => $vendor->get_id(), 'name' => $vendor->get_store_name(), 'slug' => $vendor->get_slug(), 'url' => $vendor->get_store_url(), 'logo' => $vendor->get_logo_url( 'medium' ), 'banner' => $vendor->get_banner_url(), 'bio' => (string) $vendor->get_setting( 'bio' ), 'rating' => $vendor->get_average_rating(), 'review_count' => $vendor->get_review_count(), 'on_vacation' => $vendor->is_on_vacat... ); -
/** * Filters a marketplace setting when it is read. */ apply_filters( 'storefold_setting', $value, $key, $default ); -
/** * Fires after the marketplace settings were saved. */ do_action( 'storefold_settings_saved' ); -
/** * Filters the "Getting started" steps on the marketplace overview. Each step * has a label, hint, url and done flag. */ apply_filters( 'storefold_setup_steps', $steps ); -
/** * Filters whether the Storefold Pro upgrade banner is shown. */ apply_filters( 'storefold_show_upgrade_banner', true ); -
/** * Filters whether WooCommerce's own emails stay silent for vendor sub-orders. * Return false to send them again. */ apply_filters( 'storefold_silence_suborder_emails', true, $object ); -
/** * Filters the vendor shown in the "Sold by" line on a product page. Return * null to hide the line. */ apply_filters( 'storefold_single_product_sold_by', $vendor, $product ); -
/** * Fires after a store review was moderated. */ do_action( 'storefold_store_review_moderated', $review_id, $decision ); -
/** * Fires after a review was reported. */ do_action( 'storefold_store_review_reported', $review_id, get_current_user_id() ); -
/** * Fires after a customer rated a store. */ do_action( 'storefold_store_review_submitted', $vendor->get_id(), get_current_user_id(), $rating ); -
/** * Filters the schema.org data printed on a store page. */ apply_filters( 'storefold_store_schema', $schema, $vendor ); -
/** * Fires below the store settings form, for extensions that need their own * separate forms (for example document uploads). */ do_action( 'storefold_store_settings_after_form', $vendor ); -
/** * Fires after the vendor saved their store settings. */ do_action( 'storefold_store_settings_saved', $vendor->get_id() ); -
/** * Fires inside the store settings form, between the policies and the payout * sections, so extensions can add their own settings cards. */ do_action( 'storefold_store_settings_sections', $vendor ); -
/** * Filters the per-vendor settings saved from the dashboard settings screen. * Runs after the request nonce and capability were verified. */ apply_filters( 'storefold_store_settings_values', $settings, $vendor ); -
/** * Fires right after the store name in the storefront header, for badges. */ do_action( 'storefold_store_title_after', $storefold_store ); -
/** * Filters how many stores the directory shows per page. */ apply_filters( 'storefold_stores_per_page', 12 ); -
/** * Filters the arguments used to create a vendor sub-order. */ apply_filters( 'storefold_suborder_args', array( 'customer_id' => $parent->get_customer_id(), 'parent' => $parent->get_id(), 'status' => $parent->get_status(), 'created_via' => 'storefold_split', ), $parent, $vendor ); -
/** * Fires when a vendor sub-order was created. */ do_action( 'storefold_suborder_created', $suborder->get_id(), $order->get_id(), $vendor->get_id() ); -
/** * Fires after a parent line was copied into a vendor sub-order, before the * sub-order is saved. Use it to copy private item meta. */ do_action( 'storefold_suborder_item_created', $new_item, $item, $vendor ); -
/** * Filters the exact shipping amount a vendor charged on an order. Return null * to fall back to a share proportional to the subtotal. */ apply_filters( 'storefold_suborder_shipping_exact', null, $parent, $vendor ); -
/** * Filters the exact shipping taxes (per tax rate id) a vendor charged on an * order. Return null to share the parent's shipping taxes in proportion to the * vendor's shipping amount. */ apply_filters( 'storefold_suborder_shipping_taxes_exact', null, $parent, $vendor, $shipping_share ); -
/** * Fires after a vendor added shipping tracking to an order. */ do_action( 'storefold_tracking_added', $order->get_id(), $tracking, $carrier ); -
/** * Filters the product categories a vendor may list in. Return an empty array * to allow every category. */ apply_filters( 'storefold_vendor_allowed_category_ids', array(), $vendor ); -
/** * Filters the answers to the extra application questions shown on the admin * vendor screen, keyed by question. */ apply_filters( 'storefold_vendor_application_answers', (array) $vendor->get_setting( 'application', array() ), $vendor ); -
/** * Fires when a vendor is approved. */ do_action( 'storefold_vendor_approved', $vendor_id ); -
/** * Filters whether a vendor's products can be bought right now. */ apply_filters( 'storefold_vendor_can_sell', $can_sell, $vendor, $product ); -
/** * Fires after a vendor record was deleted. */ do_action( 'storefold_vendor_deleted', $vendor_id ); -
/** * Fires once per vendor order, when it is paid. */ do_action( 'storefold_vendor_order_paid', $order->get_id(), $vendor_id ); -
/** * Fires when a vendor record is created. */ do_action( 'storefold_vendor_registered', $vendor_id, $user_id ); -
/** * Fires when a vendor's status changes. */ do_action( 'storefold_vendor_status_changed', $vendor_id, $status ); -
/** * Fires after a vendor record was updated. */ do_action( 'storefold_vendor_updated', $vendor_id ); -
/** * Fires after a vendor cancelled a withdrawal request. */ do_action( 'storefold_withdrawal_cancelled', $withdrawal_id ); -
/** * Filters the smallest withdrawal a vendor may request. */ apply_filters( 'storefold_withdrawal_min', Storefold_Settings::get( 'withdrawal_min', 0 ), $vendor ); -
/** * Fires after a withdrawal was paid. */ do_action( 'storefold_withdrawal_paid', $withdrawal_id, $vendor->get_id(), (float) $withdrawal->amount ); -
/** * Fires after a withdrawal request was rejected. */ do_action( 'storefold_withdrawal_rejected', $withdrawal_id ); -
/** * Fires after a vendor requested a withdrawal. */ do_action( 'storefold_withdrawal_requested', $withdrawal_id, $vendor->get_id(), $amount ); -
/** * Fires below the available balance on the vendor payouts screen. */ do_action( 'storefold_withdrawals_after_balance', $vendor ); -
/** * Fires after the setup wizard saved its choices. */ do_action( 'storefold_wizard_completed' ); -
/** * Fires the standard WooCommerce customer details renderer. */ do_action( 'woocommerce_email_customer_details', $order, false, false, $this ); -
/** * Fires when the WooCommerce email header renders. */ do_action( 'woocommerce_email_header', $email_heading, $email ); -
/** * Fires the standard WooCommerce order details table renderer. */ do_action( 'woocommerce_email_order_details', $order, false, false, $this ); -
/** * Fires the standard WooCommerce order meta renderer. */ do_action( 'woocommerce_email_order_meta', $order, false, false, $this ); -
do_action( 'storefold_before_payout', $withdrawal_id, $vendor->get_id() );
Generated from Storefold'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: