A WordPress plugin for integrating Invintus video content into your WordPress site. This plugin provides a custom post type for managing Invintus videos and a settings page for configuring your Invintus API credentials.
- Custom post type for Invintus videos
- Settings page for API configuration
- Player preference selection
- Modern block editor support
- Automatic video embedding
- Log in to your WordPress dashboard
- Go to Plugins > Add New
- Click the "Upload Plugin" button at the top of the page
- Click "Choose File" and select the invintus.zip file
- Click "Install Now"
- After installation completes, click "Activate Plugin"
- Download the latest release zip file
- Unzip the file
- Upload the
invintus
folder to your/wp-content/plugins/
directory via FTP or file manager - Log in to your WordPress dashboard
- Go to Plugins > Installed Plugins
- Find "Invintus" in the list and click "Activate"
- WordPress 5.8+
- PHP 7.4+
- Node.js 16+ (for development)
- Composer (for PHP dependencies)
-
Clone this repository into your WordPress plugins directory:
cd wp-content/plugins git clone [repository-url] invintus
-
Install PHP dependencies:
composer install
-
Install Node.js dependencies:
npm install
-
Build the assets:
# For development (with watch mode) npm run dev # For production npm run build
- Activate the plugin in WordPress admin
- Go to Invintus Videos > Settings
- Enter your API credentials:
- API Key
- Client ID
Alternatively, you can define these in your wp-config.php
:
define( 'INVINTUS_API_KEY', 'your-api-key' );
define( 'INVINTUS_CLIENT_ID', 'your-client-id' );
This plugin includes a release script that creates a distribution-ready ZIP file. The script:
- Runs
composer install
with production optimizations - Excludes development files
- Creates a ZIP file with only the necessary files
To create a release:
# Basic usage (outputs to current directory)
node create-release.js
# Specify output directory
node create-release.js outdir=/path/to/output
The script will:
- Run
composer install --no-dev --optimize-autoloader
- Create a ZIP file containing only production files
- Exclude development files like:
.git
node_modules
- Development configuration files
- Build files
- Test files
The resulting ZIP file can be used to install the plugin on any WordPress site.