Helper::embed_by_video_id( string $video_id, array $args = array(), bool $echo = true )
Create the embed code based on given parameters
Parameters
- $video_id
-
(Required)
The Vimeo video ID.
- $args
-
(Optional)
An array of arguments used when embedding.
Default value: array()
- $echo
-
(Optional)
Output the embed code (true) or not (false).
Default value: true
Source
File: includes/libs/helper.class.php
462 | public static function embed_by_video_id( $video_id , $args = [], $echo = true ){ |
470 | $args = wp_parse_args( |
476 | '<iframe src="%s" width="100%%" height="100%%" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>' , |
479 | urlencode( $video_id ), |
480 | http_build_query( $args ) |
Expand full source code
Collapse full source code