Admin Section Filters

Dokan Multi Vendor Documentation

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_sectionsFilter for manage admin settings section. Arguments ( $sections )
dokan_settings_fieldsFilter for manage admin settings section. Arguments ( $settings_fields )

Theme Color Filters

Dokan filters for theme color.

dokan_color_skinTheme color set filter. Arguments ( array )

Option Filters

Dokan filters for admin options.

doakn_menu_positionAdmin menu position filter. Arguments ( 17 )
doakn_menu_capabilityAdmin menu capability filter. Arguments ( manage_options )

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