SFV
Packages
Table of Contents
- sfv_get_post_video_source() : string|false
- Retrieves the post video source.
- sfv_has_post_video() : bool
- Determines whether a post has a video attached.
- sfv_get_post_video_id() : int|false
- Retrieves the post video ID.
- sfv_the_post_video() : mixed
- Displays the post video.
- sfv_get_the_post_video() : string
- Retrieves the post video.
- sfv_the_post_video_url() : mixed
- Displays the post video URL.
- sfv_get_the_post_video_url() : string|false
- Returns the post video URL.
- sfv_the_post_video_caption() : mixed
- Displays the post video caption.
- sfv_get_the_post_video_caption() : string
- Returns the post video caption.
Functions
sfv_get_post_video_source()
Retrieves the post video source.
sfv_get_post_video_source([int|WP_Post $post = null ]) : string|false
Parameters
- $post : int|WP_Post = null
-
Optional. Post ID or WP_Post object. Default is global
$post
.
Tags
sfv_has_post_video()
Determines whether a post has a video attached.
sfv_has_post_video([int|WP_Post $post = null ]) : bool
Parameters
- $post : int|WP_Post = null
-
Optional. Post ID or WP_Post object. Default is global
$post
.
Tags
sfv_get_post_video_id()
Retrieves the post video ID.
sfv_get_post_video_id([int|WP_Post $post = null ]) : int|false
Parameters
- $post : int|WP_Post = null
-
Optional. Post ID or WP_Post object. Default is global
$post
.
Tags
sfv_the_post_video()
Displays the post video.
sfv_the_post_video([string|array<string|int, mixed> $attr = '' ]) : mixed
Parameters
- $attr : string|array<string|int, mixed> = ''
-
Optional. Query string or array of attributes. Default empty.
Tags
sfv_get_the_post_video()
Retrieves the post video.
sfv_get_the_post_video([int|WP_Post $post = null ][, string|array<string|int, mixed> $attr = '' ]) : string
Parameters
- $post : int|WP_Post = null
-
Optional. Post ID or WP_Post object. Default is global
$post
. - $attr : string|array<string|int, mixed> = ''
-
Optional. Query string or array of attributes. Default empty.
Tags
sfv_the_post_video_url()
Displays the post video URL.
sfv_the_post_video_url([mixed $post = null ]) : mixed
Parameters
- $post : mixed = null
Tags
sfv_get_the_post_video_url()
Returns the post video URL.
sfv_get_the_post_video_url([int|WP_Post $post = null ]) : string|false
Parameters
- $post : int|WP_Post = null
-
Optional. Post ID or WP_Post object. Default is global
$post
.
Tags
sfv_the_post_video_caption()
Displays the post video caption.
sfv_the_post_video_caption([int|WP_Post $post = null ]) : mixed
Parameters
- $post : int|WP_Post = null
-
Optional. Post ID or WP_Post object. Default is global
$post
.
Tags
sfv_get_the_post_video_caption()
Returns the post video caption.
sfv_get_the_post_video_caption([int|WP_Post $post = null ]) : string
Parameters
- $post : int|WP_Post = null
-
Optional. Post ID or WP_Post object. Default is global
$post
.