\Jetpack_VideoPress_Shortcode

VideoPress Shortcode Handler

This file may or may not be included from the Jetpack VideoPress module.

Summary

Methods
Properties
Constants
init()
__construct()
shortcode_callback()
is_valid_guid()
enqueue_scripts()
$min_width
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$min_width

$min_width

Methods

init()

init()

Singleton

__construct()

__construct()

shortcode_callback()

shortcode_callback(array $attr,  $content) : string

Translate a 'videopress' or 'wpvideo' shortcode and arguments into a video player display.

Parameters

array $attr

shortcode attributes

$content

Returns

string —

HTML markup or blank string on fail

is_valid_guid()

is_valid_guid(string $guid) : bool

Validate user-supplied guid values against expected inputs

Parameters

string $guid

video identifier

Returns

bool —

true if passes validation test

enqueue_scripts()

enqueue_scripts() : null

Enqueue scripts needed to play VideoPress videos

Returns

null