WP_oEmbed
class WP_oEmbed
// Constructor: function Object() { [native code] } Core class used to implement oEmbed functionality.
Methods 15 methods
| Method / Return | Description |
|---|---|
| __construct() void | Constructor. |
| __call() (mixed | Exposes private/protected methods for backward compatibility.
Parameters: $name: mixed, $arguments: mixed |
| get_provider() (string | Takes a URL and returns the corresponding oEmbed provider's URL, if there is one.
Parameters: $url: mixed, $args: mixed |
| _add_provider_early() void | Adds an oEmbed provider.
Parameters: $format: mixed, $provider: mixed, $regex: mixed |
| _remove_provider_early() void | Removes an oEmbed provider.
Parameters: $format: mixed |
| get_data() (object | Takes a URL and attempts to return the oEmbed data.
Parameters: $url: mixed, $args: mixed |
| get_html() (string | The do-it-all function that takes a URL and attempts to return the HTML.
Parameters: $url: mixed, $args: mixed |
| discover() (string | Attempts to discover link tags at the given URL for an oEmbed provider.
Parameters: $url: mixed |
| fetch() (object | Connects to an oEmbed provider and returns the result.
Parameters: $provider: mixed, $url: mixed, $args: mixed |
| _fetch_with_format() (object | Fetches result from an oEmbed provider for a specific format and complete provider URL
Parameters: $provider_url_with_args: mixed, $format: mixed |
| _parse_json() (object | Parses a json response body.
Parameters: $response_body: mixed |
| _parse_xml() (object | Parses an XML response body.
Parameters: $response_body: mixed |
| _parse_xml_body() (stdClass | Serves as a helper function for parsing an XML response body.
Parameters: $response_body: mixed |
| data2html() (string | Converts a data object from WP_oEmbed::fetch() and returns the HTML.
Parameters: $data: mixed, $url: mixed |
| _strip_newlines() string | Strips any new lines from the HTML.
Parameters: $html: mixed, $data: mixed, $url: mixed |
Properties
| Property / Type | Description |
|---|---|
| $providers mixed public | No description available. |
| $early_providers mixed public | No description available. |
| $compat_methods mixed public | No description available. |