Class CMB2_Ajax
CMB2 ajax methods (i.e. a lot of work to get oEmbeds to work with non-post objects)
Package: CMB2
Category: WordPress_Plugin
License: GPL-2.0+
Author: CMB2 team
Since: 0.9.5
Located at includes/CMB2_Ajax.php
Category: WordPress_Plugin
License: GPL-2.0+
Author: CMB2 team
Since: 0.9.5
Located at includes/CMB2_Ajax.php
Methods summary
public static
|
|
protected
|
|
public
mixed
|
|
public
mixed
|
|
public
string
|
|
public
mixed
|
#
hijack_oembed_cache_get( boolean $check, integer $object_id, string $meta_key )
Hijacks retrieving of cached oEmbed. Returns cached data from relevant object metadata (vs postmeta) |
public
boolean
|
#
hijack_oembed_cache_set( boolean $check, integer $object_id, string $meta_key, mixed $meta_value )
Hijacks saving of cached oEmbed. Saves cached data to relevant object metadata (vs postmeta) |
protected
mixed
|
#
cache_action( string $meta_key )
Gets/updates the cached oEmbed value from/to relevant object metadata (vs postmeta). |
public static
|
#
clean_stale_options_page_oembeds( string $option_key )
Hooks in when options-page data is saved to clean stale oembed cache data from the option value. |
Properties summary
protected
boolean
|
$hijack
|
#
false
|
protected
integer
|
$object_id
|
#
0
|
protected
array
|
$embed_args
|
#
array()
|
protected
string
|
$object_type
|
#
'post'
|
protected
boolean
|
$ajax_update
|
#
false
|
protected static
object
|
$instance
Instance of this class. |