Advertisement
fauzanjeg

Increase Frontend Max Upload Size

Dec 15th, 2021
1,282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. /* Increase Frontend Max Upload Size */
  2. function max_upload_file_frontend_submit( $size ) {
  3.     $size = wp_convert_hr_to_bytes( '100MB' );
  4.     return $size;
  5. }
  6. add_filter( 'jnews_frontend_max_upload_size', 'max_upload_file_frontend_submit', 99 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement