rtmedia_required_activity_text_with_attachment

Description

Use this filter to make Activity textbox content compulsory while attaching media.

Sample code

Add the following code in your theme’s functions.php file:

add_filter( 'rtmedia_required_activity_text_with_attachment', 'rtmedia_required_activity_text', 10, 1 );

function rtmedia_required_activity_text( $val ) {
    return 'enable';
}