Hello i am trying to make a wp_embed_register_handler for my openlaod videos so i can use it with the Detube theme in the Video URL box. ex https://openload.co/embed/djDd-6yf8tU/ It dont support oembed tho how would i do this? i heard i would use

    /**
 * Register an embed handler for Openload videos
 */
add_action( 'init', function()
{
    wp_embed_register_handler( 
        'openloa', 
        '#http://www.openload.co/embed/([a-zA-Z0-9_-]+)$#i',   // 
        'openload_embed_handler' 
    );
} );

But ive tried to add it to my functions.php file and no luck i been trying hours its getting me so worked up haha any help or ideas would be great! thanks in Advance :)

Read more here: wp_embed_register_handler with Openload


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: