1. Home
  2. Docs
  3. Dokan Multi Vendor Documentation
  4. Developer Documentation
  5. Admin Section Filters

Admin Section Filters

Filters are functions that WordPress passes data through, at certain points in execution, just before taking some action with the data (such as adding it to the database or sending it to the browser screen). Filters sit between the database and the browser (when WordPress is generating pages), and between the browser and the database (when WordPress is adding new posts and comments to the database); most input and output in WordPress passes through at least one filter. WordPress does some filtering by default, and your plugin can add its own filtering.

The basic steps to adding your own filters to WordPress (described in more detail below) are:

  • Create the PHP function that filters the data.
  • Hook to the filter in WordPress, by calling add_filter()
  • Put your PHP function in a plugin file, and activate it.

Settings Filters

Dokan included neccessery filters for admin settings.

dokan_settings_sections Filter for manage admin settings section. Arguments ( $sections )
dokan_settings_fields Filter for manage admin settings section. Arguments ( $settings_fields )

Theme Color Filters

Dokan filters for theme color.

dokan_color_skin Theme color set filter. Arguments ( array )

Option Filters

Dokan filters for admin options.

doakn_menu_position Admin menu position filter. Arguments ( 17 )
doakn_menu_capability Admin menu capability filter. Arguments ( manage_options )

Note: All Filters of WordPress and WooCommerce plugins are available.

Was this article helpful to you?

How can we help?