Add a short sentence


#1

Hi everybody. I would be very happy to know how its possible to add a short sentence at the upload function? Like: “It is allowed to upload a video up to 200mb.” Thanks alot and kind regards


#2

Hello @Jan_Hartwig,

If you want to add some text in the uploader view, you can use below filter:

add_filter('rtmedia_uploader_before_start_upload_button','add_custom_message');

function add_custom_message(){
	return "Custom Message of your choice";
}

If you want to select any other place to display this message, you can find other filters in file here :

Thank you.


#3

Hi @pranalipatel Thanks alot for your fast answer. I’m impressed. Is that right that I have to place the filter in the RTMediaUploadView.php?

Kind regards


#4

You are welcome @Jan_Hartwig,

No, you need to put the code in your theme’s functions.php file.

Thank you.


#5

PERFECT. Works very well.

Thanking you again.


#6

You are welcome! We are glad to know that your issue has been solved. :slight_smile:

I am closing this thread now.

Regards,

Pranali


#7