meta_keys = $meta_keys; } // OEmbed url (well, without the protocol or {format} tags) as specified in plugin => VideoSEO service name. $this->video_oembeds = array( '//fast.wistia.com/oembed' => 'wistia', '//www.screenr.com/api/oembed' => 'screenr', '//lab.viddler.com/services/oembed/' => 'viddler', ); $evs_location = get_option( 'evs_location' ); if ( $evs_location && ! empty( $evs_location ) ) { $this->video_oembeds[ $evs_location . '/oembed.php' ] = 'evs'; } } /** * Analyse a specific post meta field for usable video information * * @param string $meta_value The value to analyse. * @param string $meta_key The associated meta key. * @param int $post_id The id of the post this meta value applies to. * * @return array An array with the usable information found or else an empty array. */ public function get_info_from_post_meta( $meta_value, $meta_key, $post_id ) { $vid = array(); if ( preg_match( '`^[^\s]+\.(?:' . WPSEO_Video_Sitemap::$video_ext_pattern . ')$`', $meta_value ) ) { $vid['content_loc'] = $meta_value; $vid['url'] = $meta_value; $vid['maybe_local'] = true; $vid['type'] = 'custom_field'; } else { $vid['__add_to_content'] = $meta_value; } return $vid; } } }