Filters

Description

rtmedia_urls_preview_not_allow


Use this filter to prevent URL preview from particular sites.
For example, the snippet below will not show the preview of vimeo.com videos.

function rtmedia_urls_preview_not_allow_callback( $urls_preview_not_allow ) {
	$urls_preview_not_allow = array( 'vimeo.com', 'www.vimeo.com' );
	return $urls_preview_not_allow;
}
add_filter( 'rtmedia_urls_preview_not_allow', 'rtmedia_urls_preview_not_allow_callback', 10, 1 );

rtm_preview_error_msg


Use this filter to alter error message when the preview of any URL is not available.

function rtm_preview_error_msg( $error_msg ) {
    return 'ADD YOUR TEXT HERE';
}

add_filter( 'rtm_preview_error_msg', 'rtm_preview_error_msg', 10, 1 );