Claim your freedom to choose the perfect partner for your multi-vendor journey.

FREEDOM25

Celebrate the festive season by giving your marketplace a powerful lift!

FESTIVE20

5.0.0
Something big is coming for marketplace admins… MultiVendorX 5.0 is almost here. Are you ready?
Be the first to explore all the game-changing features!
Power your marketplace dreams with unbeatable Black Friday deals!

MVXBLACK30

Supercharge your marketplace vision with unstoppable Cyber Monday deals!

MVXCYBER30

Holiday cheer, bigger savings
Take 25% off-because your marketplace deserves a gift too.

happyholiday

View Categories

Maximum Size of image uploading

add restriction for vendor upload
function limit_upload_size_limit_for_non_admin( $limit ) {
if(is_user_mvx_vendor(get_current_user_id())){
    $limit = '258000'; // 1kb in bytes
  }
  return $limit;
}
 
add_filter( 'upload_size_limit', 'limit_upload_size_limit_for_non_admin' );
 
 
function apply_wp_handle_upload_prefilter( $file ) {
if(is_user_mvx_vendor(get_current_user_id())){
    $limit = 258000; // 1kb in bytes
    if ( $file['size'] > $limit ) {
      $file['error'] = sprintf( __( 'ERROR: File size limit is %d KB.' ), $limit);
    }
  }
  return $file;
}
 
add_filter( 'wp_handle_upload_prefilter', 'apply_wp_handle_upload_prefilter' );

Leave a Reply

Shopping Cart
Scroll to Top