1. Membership.io Help Center
  2. Apps
  3. Embedding Searchie into other platforms

Make your LearnDash site Membership.io friendly

Embed Membership.io videos into lessons in LearnDash

🧰 What You Will Need

  1. A Membership.io Player, Playlist, or Widget

  2. A LearnDash WordPress website

Step 1 - Find your functions.php file or install a compatible plugin

To add this special code to your site, you’re going to need to do one of two things. Either you (1) find your active theme’s functions.php file in your system or (2) install the Code Snippets plugin or another similar plugin.


Step 2 - Paste the following code into the location you found in Step 1

Copy the following code:

add_filter( 'ld_video_provider', function( $video_provider = '', $settings = array() ) {        if ( empty( $video_provider) ) {                $video_provider = 'local';        }        return $video_provider;}, 10, 2 );


Paste it into your functions.php file on a new line or use the Code Snippets plugin (or another similar plugin) to add it to your site that way.


If you have any troubles with this step, please reach out to
help@membership.io and include screenshots of the location you are attempting to paste the code into. The team will be able to assist from there.

Step 3 - Embed your content to your LearnDash site

Now that we have made our site Membership.io-friendly, it’s time to test our solution with a bit of code from Membership.io. Grab the embed code from Membership.io and simply insert it where you would normally insert the link for the .mp4 video.

This should do the trick and provide your audience with the amazing functionality found in the Membership.io media player, but if something unexpected occurs, please reach out to the team with screenshots so we can assist. With your help, we can update and improve upon this article with any new information that becomes available.