by Dailymotion Professional Services on WordPress.org
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.
Features
Requirements
Block Editor (Gutenberg)
Classic Editor
Using Shortcodes
You can manually embed Dailymotion videos using the [dm-player] shortcode:
`
[dm-player videoid=”VIDEO_ID” videotitle=”Video Title”]
`
Shortcode attributes:
– videoid: The ID of the public Dailymotion video
– privatevideoid: The ID of a private Dailymotion video
– playlistid: The ID of a Dailymotion playlist
– videotitle: The title of the video (displayed as caption)
Example:
[dm-player videoid="x7zxy9p" videotitle="My Awesome Video"]
Per-post Video Settings
You can customize video settings on a per-post basis:
Global Plugin Settings
To configure global plugin settings:
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:
Enhanced Security (Optional)
For users who want extra security, you can set up custom security keys:
Add the keys to your wp-config.php file: Add the following lines near the other WordPress security keys:
php
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
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.
Build Tools
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:
1. Install dependencies: npm install
2. Build the JavaScript files: npm run build
For more information about the development process, please visit our GitHub repository.
This plugin connects to the Dailymotion API as an external service. The API is used for:
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 plugin’s documentation website at Dailymotion Pro GitHub Issue.