WordPress.org

Ready to get started?Download WordPress

Forums

Page Links To
[resolved] i am trying to use rtmp:// (2 posts)

  1. pakmafia
    Member
    Posted 9 months ago #

    I have managed to install the plugin and it works on common url http:// rtsp:// but when I try to include a url beginning with rtmp it fails to register it. can I add rtmp in the plugin files so it recognises it? thanks

    http://wordpress.org/extend/plugins/page-links-to/

  2. Mark Jaquith
    WordPress Lead Dev
    Plugin Author

    Posted 9 months ago #

    WordPress doesn't have the rtmp protocol whitelisted. There is, however, a filter that lets you add it. This plugin should do the trick:

    <?php
    /*
    Plugin Name: Allow rtmp:// links
     */
    
    function allow_rtmp_links( $protocols ) {
    	$protocols[] = 'rtmp';
    	return $protocols;
    }
    
    add_filter( 'kses_allowed_protocols', 'allow_rtmp_links' );

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.