/** * Add more video extensions to the list of allowed video extensions and make sure the wp list * and the internally used list are in line with each other. * * @internal / @todo Not yet in use - uncomment the add_filter above to implement * * @internal WP default list as of v3.9.2 is array( 'mp4', 'm4v', 'webm', 'ogv', 'wmv', 'flv' ); * * @param array $exts Current list of extensions * * @return array Extended list */ public function filter_video_extensions($exts) { $more_exts = explode('|', self::$video_ext_pattern); $exts = array_unique(array_merge($exts, $more_exts)); self::$video_ext_pattern = implode('|', $exts); return $exts; }
/** * Set up the WPSEO_Video product */ public function __construct() { parent::__construct('https://yoast.com/edd-sl-api', 'Video SEO for WordPress', plugin_basename(WPSEO_Video_Sitemap::get_plugin_file()), WPSEO_VIDEO_VERSION, 'https://yoast.com/wordpress/plugins/video-seo/', 'admin.php?page=wpseo_licenses#top#licenses', 'yoast-video-seo', 'Yoast'); }