Contributors: Dailymotion Profesional Services
Tags: video player, dailymotion, video, embed, media
Requires at least: WordPress 6.4
Tested up to: WordPress 6.9
Stable tag: 2.2.3
Requires PHP: 7.4
License: GPLv2 or later
GPL License
The official Dailymotion Pro WordPress plugin that seamlessly integrates Dailymotion videos into your WordPress site.
The Dailymotion Pro WordPress plugin supports your editorial workflow by facilitating the embedding of Dailymotion videos. You can import playback settings from your Dailymotion account and easily manage video content across your WordPress site.
- Seamless integration with the WordPress Block Editor (Gutenberg)
- Classic Editor integration
- Shortcode support for embedding videos
- Per-post video settings
- Dailymotion account integration
- Support for both public and private videos
- Playlist embedding
- Customizable player settings
- WordPress 6.0 or higher
- PHP 7.4 or higher
- Active Dailymotion account (for accessing your videos)
- Create or edit a post/page.
- Click the + button to add a new block.
- Search for Dailymotion and select the block.
- Click Search Videos.
- Search for a video by title or browse your videos/playlists.
- Select the video you want to embed.
- Adjust settings in the block panel.
- Save or publish your content.
- Create or edit a post/page.
- Click the Dailymotion button in the editor toolbar.
- Search for a video or playlist.
- Select the video you want to embed.
- Click Insert.
- Save or publish your content.
You can manually embed Dailymotion videos using the shortcode:
[dm-player videoid=“VIDEO_ID” videotitle=“Video Title”]
Shortcode Attributes:
videoid: The ID of the public Dailymotion videoprivatevideoid: The ID of a private Dailymotion videoplaylistid: The ID of a Dailymotion playlistvideotitle: The title of the video (displayed as caption)
Example:
[dm-player videoid=“x7zxy9p” videotitle=“My Awesome Video”]
- Download the Dailymotion Pro plugin ZIP file.
- In your WordPress admin panel, go to Plugins > Add New.
- Click Upload Plugin.
- Click Choose File and select the downloaded ZIP file.
- Click Install Now.
- After installation, click Activate Plugin.
Once activated, you'll see a Dailymotion Pro menu item in your WordPress admin sidebar.
To access your Dailymotion videos and playlists:
- Go to Dailymotion Pro > Connection in your WordPress admin Dashboard
- Go to Dailymotion Studio to generate a new private API key and API secret
- Click "Create API Key" and choose Private API Key.
- Permissions needed by the plugin:
- Upload videos
- Read videos
- Read players
- Read playlists
- Read Channels
- Find your channel name by visit profiles page in Dailymotion Studio. You should see
@username. Use it without@. E.g.@myusername>myusername - Once a private API key and API secret are stored, you'll be able to access your videos and playlists directly from the WordPress editor
- Edit a post/page containing a Dailymotion video.
- In the Gutenberg sidebar, click Video Settings.
- Adjust settings like Player ID, Mute, Video Heading, and Video Title.
- Go to Dailymotion Pro > Plugin Settings.
- Adjust default settings for Player ID, mute, video heading, and video title display.
What is the Auth Key?
The Auth Key is a security feature in the Dailymotion Pro plugin that protects your Dailymotion account credentials. Think of it as a special password that encrypts your sensitive information when it's stored in your WordPress database.
Why is it Important?
When you connect your WordPress site to Dailymotion, you need to store API credentials (similar to a username and password). The Auth Key ensures this information is securely encrypted, preventing unauthorized access to your Dailymotion account.
How it Works for Users
Automatic Protection
By default, the Dailymotion Pro plugin uses WordPress's built-in security keys to protect your information. This means:
- You don't need to do anything special to enable basic protection
- Your credentials are automatically encrypted when saved
- The plugin handles all the security details behind the scenes
Enhanced Security (Optional)
For users who want extra security, you can set up custom security keys:
- Generate secure random keys: Use an online secure key generator
- Add the keys to your wp-config.php file: Add the following lines near the other WordPress security keys:
define('DM_PRO__AUTH_KEY', 'your-custom-random-key-here');
define('DM_PRO__NONCE_KEY', 'another-custom-random-key-here');- Save the file: Make sure to keep a backup of these keys in a secure location
Best Practices
- Use unique keys: Don't reuse passwords or keys from other services
- Keep your wp-config.php secure: Restrict access to this file on your server
- Update keys periodically: Consider changing your custom keys every few months for maximum security
- Backup before making changes: Always backup your site before editing configuration files
We follow the roles and capabilities documentation provided by the WordPress team.
Super admin
As a Super Admin, you can see and use the dailymotion plugin (all options: log in, credentials, settings) and search box/embed options
Administrator
As an Admin, you can see and use the dailymotion plugin (all options: log in, credentials, settings) and search box/embed options
Editor
As an Editor, you can see and use the dailymotion plugin (all options: log in, credentials, settings) and search box/embed options
Author
As an Author, you can see and use the dailymotion plugin (limited options: log in, manual embed settings access) and search box/embed options
Contributor
As a Contributor, you can see and use the dailymotion plugin (limited options: log in, manual embed settings access) and search box/embed options
This plugin includes minified JavaScript files that are built from TypeScript source code. In accordance with WordPress plugin guidelines, the source code is included in the plugin package in the src directory for JavaScript and in the styles directory for CSS.
The plugin uses the following build tools:
- npm: For JavaScript dependency management and build scripts
- webpack: For bundling and minifying JavaScript files
- TypeScript: For type-safe JavaScript development
To build the plugin from source:
- Install dependencies:
npm install - Build the JavaScript files:
npm run build
This plugin connects to the Dailymotion API as an external service. The API is used for:
- Searching videos: Search for both public and private content hosted on Dailymotion.
- Private content access: To access private videos, the plugin requires storing an API Key and API Secret securely in your WordPress installation.
- Video information retrieval: The API also provides video metadata (title, thumbnail, etc.) which is used to embed videos seamlessly into the WordPress editor.
By using this plugin, you acknowledge that interactions with the Dailymotion API are subject to Dailymotion's own policies and service conditions.
For support, please contact the plugin developers through the official support channels or visit the Dailymotion Pro Documentation.