dokan_is_store_listing()

Description # Return if the current item is store listing page. Return # (bool) Params # None Usage # Hooks # dokan_is_store_listing

dokan_generate_username( string $name = ‘store’ )

Description # Generates and returns an available username. If we pass an existing username, -1, -2 or -3 will be appended at the end of the username. So if the store is already using as a username it will return store-1, if store-1 also exists it will return store-2. Return # (string) Params # $name      (string) (optional): The name to generate the username.       default: store Usage #

dokan_validate_boolean( mixed $var )

Description # This function check if the passed arguments is a boolean and return true if it is a boolean, false otherwise. Important Note # This function uses FILTER_VALIDATE_BOOLEAN constant in PHP filter_var function. FILTER_VALIDATE_BOOLEAN tries to be smart, recognizing words like Yes, No, Off, On, both string and native types of true and false, and is not casesensitive when validating strings. So passing ‘Yes’, ‘off’, ‘on’ as dokan_validate_boolean function argument will be treated as true/false. Please see usage for some examples. Return # (bool) Params # None Usage #

dokan_get_seller_status_count()

Description # Get a count of all sellers, active sellers, and inactive sellers as an associative array. The array format is:total    => number of total sellers,active   => number of active sellers,inactive => number of inactive sellers, Return # (array) Params # None Usage # Hooks # dokan_get_seller_status_count (filter)

dokan_has_map_api_key()

Description # This function checks if a map API key is set in dokan settings. It will check for google map and mapbox API key. Returns true if either one is found. Return false if no map API key is found. Return # (bool) Params # None Usage #