dokan_is_store_listing()
Description # Return if the current item is store listing page. Return # (bool) Params # None Usage # Hooks # dokan_is_store_listing
Description # Return if the current item is store listing page. Return # (bool) Params # None Usage # Hooks # dokan_is_store_listing
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 #
Description # Counts total pageviews for a seller. Parameters # (int) (required) Seller id. Return # (int) Total page view counts for a seller. Usage #
File: Manager.phpNamespace: namespace WeDevs\Dokan\Vendor;Location : dokan-lite\includes\Vendor\Manager.php Vendor manager class. This class holds lot of methods that helps to get and save information about vendors. Vendor… Read More »Dokan Vendor Manager
Description # Returns an associative array of dokan-lite commission types. Currently Flat and Percentage. Return # (array) Params # None Usage # Here is an example of how we can make a select field from the… Read More »dokan_commission_types()
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 #
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)
Description # Checks if the current page is a Seller Dashboard page or not Parameters # None Return # (boolean) Whether the current page is a… Read More »dokan_is_seller_dashboard()
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 #
Dokan Lite main file dokan.php has a method called init_classes(), where instantiate requires classes and binds to the container. Inside init_classes() method, Dokan binds WeDevs\Dokan\Order\Manager(); class in container as order. With… Read More »WeDevs\Dokan\Order\Manager