Frontend Action and Hooks

Dokan Multi Vendor Documentation

In WordPress; an Action is a PHP function that is executed at specific points throughout the WordPress Core.

Developers can create a custom Action using the Action API to add or remove code from an existing Action by specifying any existing Hook. This process is called “hooking”.

Header Actions#

Hooks on header section.

beforeOn top of every page.

Front Page Actions#

Hooks on home page

dokan_home_slider_topBefore home page slide.
dokan_home_on_sliderOn home page slide.
dokan_home_after_sliderAfter home page slide.
dokan_home_after_featuredAfter home page featred product.

Sidebar Actions#

Hooks on sidebar section.

before_sidebarOn top of every sidebar without store sidebar.
dokan_sidebar_store_beforeOn top of store sidebar. perameter ( $store_user, $store_info )
dokan_sidebar_store_afterOn top of store sidebar. perameter ( $store_user, $store_info )

Store Page Actions#

Hooks on store Page.

dokan_store_profile_frame_afterAfter store banner. perameter ( $store_user, $store_info )

Shipping Page Actions#

Hooks on shpping Page.

dokan_product_options_shippingAfter shipping page.

Note: All hooks of woocommerce plugin are available.