Change Text for Maximum Upload


#1

I want to change the text when a user has reached the “maximum number of files a user can upload”. Currently it says “You can not upload any media as you had exceeded the limit to upload media.”. Where is this text located at in the plugin folder so that I can revise this text? If there as an easier way to change this text without modifying core files that would be even better. Thanks.


#2

@paulmrivera, Yes, you don't need to change code files. You can do that using available filter. Use rtmedia_upload_not_allowed_message filter to change the text.


#3

I'm not really great with creating filters. Any chance you could guide me in the right direction?


#4

@paulmrivera

You can add this filter to change the upload limit allowed message in your theme's functions.php file.

add_filter( 'rtmedia_upload_not_allowed_message', 'rtm_upload_limit_allowed_message', 20, 2 ); function rtm_upload_limit_allowed_message( $message, $section ) { return 'Your message here'; }


#5

Thanks! Much appreciated.


#6