function aioseop_ajax_update_oembed() { AIO_ProGeneral::aioseop_ajax_update_oembed(); }
/** Gets the current options stored for a given location. */ function get_current_options($opts = array(), $location = null, $defaults = null, $post = null) { $prefix = $this->get_prefix($location); $get_opts = ''; if (empty($location)) { $type = 'settings'; } else { $type = $this->locations[$location]['type']; } if ($type === 'settings') { $get_opts = $this->get_class_option(); } elseif ($type == 'metabox') { if ($post == null) { global $post; } if (isset($_GET['taxonomy']) && isset($_GET['tag_ID']) || is_category() || is_tag() || is_tax()) { if (AIOSEOPPRO) { $get_opts = AIO_ProGeneral::getprotax($get_opts); } } elseif (isset($post)) { $get_opts = get_post_meta($post->ID, '_' . $prefix . $location, true); } } $defs = $this->default_options($location, $defaults); if ($get_opts == '') { $get_opts = $defs; } else { $get_opts = wp_parse_args($get_opts, $defs); } $opts = wp_parse_args($opts, $get_opts); return $opts; }