class EmbedShortcodeProvider implements ShortcodeHandler (View source)

Provider for the [embed] shortcode tag used by the embedding service in the HTML Editor field.

Provides the html needed for the frontend and the editor field itself.

Methods

static mixed
get_shortcodes()

Gets the list of shortcodes provided by this handler

static string
handle_shortcode(array $arguments, string $content, ShortcodeParser $parser, string $shortcode, array $extra = array())

Embed shortcode parser from Oembed. This is a temporary workaround.

static string
embedForTemplate(Adapter $embed, array $arguments)

No description

Details

static mixed get_shortcodes()

Gets the list of shortcodes provided by this handler

Return Value

mixed

static string handle_shortcode(array $arguments, string $content, ShortcodeParser $parser, string $shortcode, array $extra = array())

Embed shortcode parser from Oembed. This is a temporary workaround.

Oembed class has been replaced with the Embed external service.

Parameters

array $arguments

Arguments passed to the parser

string $content

Raw shortcode

ShortcodeParser $parser

Parser

string $shortcode

Name of shortcode used to register this handler

array $extra

Extra arguments

Return Value

string

Result of the handled shortcode

static string embedForTemplate(Adapter $embed, array $arguments)

Parameters

Adapter $embed
array $arguments

Additional shortcode params

Return Value

string