Method type #
non-static
Description #
If the selling capacity is enabled.
Parameter #
Parameters not found in this method.
Hooks #
Hooks are not found in this method.
Return #
(boolean) Return true or false for getting vendor selling capability.
Usage #
// Check if current user/vendor can sell products.
$user_id = get_current_user_id();
$is_enable_seller = dokan()->vendor->get( $seller_id )->is_enabled();
// Traditional way.
$user_id = get_current_user_id();
$is_enable_seller = dokan_is_seller_enabled( $user_id );