Empty_Parser::oembed( string $url, bool $ajax = false )

Description

public static

Build the oembed code for a certain URL.
Either return or output the markup.

Availability

  • Backend
  • Empty Page Builder
  • Frontend

Since

2.0

Parameters

string $url
The URL to retrieve the oembed for.
bool $ajax = false
Whether the function is called via AJAX or not.
When set to true the $url parameter will be overwritten by $_POST['url'].

Return value

string