Set Vendor Upload File Size Limit

By default, MarketKing sets a limit of 1MB for vendor file uploads. It's possible to change this limit by adding a PHP code snippet to your site:

add_filter('marketking_vendor_upload_file_size', function($val){
	return 10485760;
}, 10, 1);

The above code will set the limit to 10MB. You can change that number to anything you want (it represents the file size in bytes). For example you can add another 0 to it to set it to 100MB.

A PHP snippet can be added to functions.php or by following our guide.

Powered by BetterDocs