Function cmb2_get_oembed
Get a cmb oEmbed. Handles oEmbed getting for non-post objects
Package: CMB2
License: GPL-2.0+
Author: CMB2 team
Since: 2.0.0
Located at includes/helper-functions.php
License: GPL-2.0+
Author: CMB2 team
Since: 2.0.0
Located at includes/helper-functions.php
Parameters summary
array |
$args = array() |
<p>Arguments. Accepts:</p> <pre><code> 'url' - URL to retrieve the oEmbed from, 'object_id' - $post_id, 'object_type' - 'post', 'oembed_args' - $embed_args, // array containing 'width', etc 'field_id' - false, 'cache_key' - false, 'wp_error' - true/false, // To return a wp_error object if no embed found. </code></pre> |
Return value summary
string
|
oEmbed string |