• Hi there!
    I’m trying to add replit.com to WordPress whitelist so I can share and let users edit the code.
    I tried to add a few lines that I found on another website (below) but it didn’t work.

    function custom_oembed_provider() {
    
    	wp_oembed_add_provider( 'http://replit.com/*', 'http://replit.com/oembedprovider', true);
    
    }
    add_action( 'init', 'custom_oembed_provider' );

    Can anyone help me?

    • This topic was modified 4 years, 8 months ago by Steven Stern (sterndata).
    • This topic was modified 4 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 1 replies (of 1 total)
  • I’m not a developer, but I was able to get this work with just this at the end of my theme’s functions.php file:

    wp_oembed_add_provider( 'https://replit.com/*', 'https://replit.com/data/oembed');

Viewing 1 replies (of 1 total)

The topic ‘Add replit to whitelist for oembed’ is closed to new replies.