Filters

  • rtmedia_urls_preview_not_allow
  • rtmedia_urls_preview_not_allow

    Use this filter to prevent url preview from particular sites.
    For example, the snippet below will not show 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 );