Skip to content

Hooks and Filters

The addon exposes filters and actions for developers to adjust its output. All hooks below are fired by the addon itself. The addon also consumes many hooks from the Reign theme, Dokan, WooCommerce, and BuddyPress, but those are owned by that software.

The addon has no REST API endpoints, no custom database tables, no cron jobs, no custom post types, and no blocks.

Filter Argument Purpose
rda_dokan_store_listing_per_page array of defaults Filters the full default attributes array of the [rda_dokan_store_listing] shortcode. Despite the name, it is not a single per-page number.
rda_dokan_seller_listing_args array Filters the seller query args used by the store listing shortcode.
rda_dokan_store_list_args array Filters the template args passed to the store-lists template part.
Filter Argument Purpose
reign_dokan_favorite_product_icon string (HTML) Filters the heart icon markup on products.
reign_dokan_favorite_product_tab_name string Filters the Favorite profile tab label.
reign_dokan_favorite_product_tab_slug string Filters the Favorite profile tab slug.
reign_dokan_fav_product_bp_tab_posts_per_page int Filters the products-per-page on the Favorite tab.
Filter Argument Purpose
rda_dokan_store_primary_bp_tab_name string Filters the Store profile tab label.
rda_dokan_store_bp_tab_posts_per_page int Filters the products-per-page on the Store tab.
dokan_format_activity_action_product_create string Filters the “added a new product” activity action text.
dokan_format_activity_action_product_review string Filters the “wrote a review” activity action text.
Filter Argument Purpose
wbtm_dokan_vertical_tabs array Filters the vertical tabs shown on the Dokan settings tab (default: General).
reign_dokan_locate_template string (path) Filters the resolved template path used by the addon’s template loader.
Action Purpose
reign_dokan_addon_loaded Fires after the main addon class is constructed. Use it to run code once the addon is loaded.
Action Access Purpose
wp_ajax_reign_dokan_do_mark_favorite Logged-in users only Toggles a product in the current user’s favorites. Requires the reign_dokan_nonce nonce (POST field security) and validates that the product ID is a real product. There is no nopriv handler, so logged-out requests are rejected.
Filter Purpose
edd_bprm_sl_api_request_verify_ssl Controls SSL verification for the EDD license update request. Default is on (true).