Secure video player for WordPress

Sell and show your courses on the WordPress site you already have. The XAPlayer player sits inside your lesson page with a shortcode, plays only for signed-in users, and puts each student’s name on the picture.

Why XAPlayer for WordPress

  • Right in the lesson page

    Students never leave your site or install anything; the player runs inside any page or post.

  • Stops IDM and downloaders

    Every lesson is encrypted, and files a downloader grabs won’t play without the student’s device key.

  • Watermark with the WordPress user

    The signed-in user’s name and phone move across the picture, so any leak traces back to them.

  • Only on your domain

    The player only appears on domains you list in the panel; copying the code to another site does nothing.

Three steps to secure playback

  1. Create an API key in your XAPlayer panel and add your site’s domain.
  2. Add the ready-made shortcode from the tutorial to your child theme’s functions.php or Code Snippets.
  3. Write [xaplayer] in any lesson page. That’s it.

Tutorials and docs

A taste of the code

The full code, where it goes and how to test it are in the tutorial.

functions.php
// After adding the XAPlayer shortcode from the tutorial,
// put this in any lesson page or post:
[xaplayer course="COURSE_ID"]

// Only signed-in students see the player,
// with their own name moving across the video.

Questions

No. A short shortcode from the tutorial goes in your child theme’s functions.php or Code Snippets, and [xaplayer] shows the player anywhere.

Yes. The shortcode works in Elementor’s Shortcode widget and any builder that runs WordPress shortcodes.

Exclude lesson pages from page caching, because each student gets their own short-lived token. The tutorial shows how.

A prompt to sign in. The player is only created for a signed-in user, with their own name.

Only on the WordPress server, in wp-config.php. It never goes into browser code.

Other platforms

Protect your course today

Signing up takes two minutes. 14 days free, with 10 licenses on us.

Start your 14-day free trial