WeDevs\Dokan\Vendor\Vendor::is_vendor()
Method type # non-static Description # Check if the user is a vendor. If this user has the capability “dokandar” then our user will be a… Read More »WeDevs\Dokan\Vendor\Vendor::is_vendor()
Method type # non-static Description # Check if the user is a vendor. If this user has the capability “dokandar” then our user will be a… Read More »WeDevs\Dokan\Vendor\Vendor::is_vendor()
Description # Checks and returns if the current user is the author of provided product id. Parameters # (int) (optional) $product_id Product id.Default value: 0… Read More »dokan_is_product_author( int $product_id = 0 )
Description # Get a unique array of seller_ids from an order. Parameters # $order_id (int) (Required) The order id Return # (array) List of seller… Read More »dokan_get_seller_ids_by( $order_id )
Description # By checking ‘customer’ role, returns if the user is a customer or not. Parameters # (int) (required) $user_id User id Return # (boolean) Whether… Read More »dokan_is_user_customer( int $user_id )
Method type #non-static Description #Get all featured vendors or as arguments passed. Parameters # $args( array ) Gives all featured vendors or gives vendors as the… Read More »WeDevs\Dokan\Vendor\Manager:: get_featured( array $args = [] )
Description # By checking ‘dokandar’ capability, returns if the user is a vendor or not. Parameters # (int) (required) $user_id User id Return # (boolean) Whether… Read More »dokan_is_user_seller( int $user_id )
Method type #non-static Description #Delete a vendor by vendor id with reassign dara Parameters #$vendor_id ( int ) Vendor user id. $reassign( null ) default… Read More »WeDevs\Dokan\Vendor\Manager:: delete( int $vendor_id, Null $reassign )
Method type # non-static Description # Check if this key exists & return the key name. Parameter # $key : ( String ) ( Required… Read More »WeDevs\Dokan\Vendor\Vendor::get_value()
Description # check if a specific information should be hidden in the frontend. The option could be email, phone, address. Returns true or false if… Read More »dokan_is_vendor_info_hidden( string $option = null )
Method type #non-static Description #Updates a vendor data is given in the data parameter. Parameters #$vendor_id ( int ) Vendor user id. $data( array ) Vendor… Read More »WeDevs\Dokan\Vendor\Manager:: update( int $vendor_id, array $data = [] )