Video Player is a WordPress ability from The Plus Addons for Elementor — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Video Player

Write

Adds the The Plus "Video Player" widget (tp-video-player) to an Elementor container, embedding a YouTube, Vimeo, or self-hosted video.

Requires the The Plus Addons for Elementor plugin (which registers under the 'tpae' ability category) on WordPress 6.9+, with Elementor active. Every ability requires the current user to have the 'edit_posts' capability (and 'edit_post' for the specific post being modified); abilities that create or edit content also verify Elementor and, where relevant, the target The Plus widget are available. A subset of abilities (theme templates, template conditions, dynamic tags, popups, and some custom-code abilities) only register when Elementor Pro is active, and many widget abilities load only in the free plugin when the Pro add-on is inactive.

What it does

The execute_callback tpae_mcp_add_theplus_video_player_ability checks Elementor is active and the tp-video-player widget is registered, requires post_id, parent_id, and video_type, and confirms the target post exists. It loads the post's Elementor element tree, builds settings from video_type (sanitize_key), youtube_id/vimeo_id (sanitize_text_field), and video_autoplay/video_muted/video_loop/video_controls (sanitize_key), merges in any raw settings, and constructs a new widget element with widgetType tp-video-player. It inserts the widget into the parent container at the given position and saves the Elementor data, returning an error if the parent is not found.

See it in action

You ask your AI assistant

"Add a self-hosted video player widget with autoplay muted and looping to the hero section of the landing page."

Inputs

Name Type Required Description
post_id integer Yes Elementor page/post ID
parent_id string Yes Target Elementor container ID
position integer No Insert position. Use -1 to append.
video_type string Yes Video source platform (youtube, vimeo, self-hosted)
youtube_id string No YouTube video ID (e.g. dQw4w9WgXcQ)
vimeo_id string No Vimeo video ID
video_autoplay string No Auto-play video on load (yes, no)
video_muted string No Mute video on load (yes, no)
video_loop string No Loop video continuously (yes, no)
video_controls string No Show video controls (yes, no)
settings object No Raw Elementor/The Plus control settings to merge into the widget at creation time. Use control keys from sprout/get-theplus-widget-schema.

Returns

Returns the new element_id, the widget_type (tp-video-player), and the post_id the widget was added to.

Permission

Requires the current user to have the edit_posts capability, and if a post_id is supplied, also requires edit_post capability for that specific post.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.