\"YouTube"; } return $content; } /** change setting from within code using lyte_settings filter */ // add_filter('lyte_settings','lyte_change_settings',10,1); function lyte_change_settings($settingsArray) { $settingsArray['links']="0"; return $settingsArray; } /** disable captions lookup */ // add_filter('lyte_docaptions','lyte_nocaptions',10,0); function lyte_nocaptions() { return false; } /** force lyte javascript (which includes css) to be loaded in head instead of footer */ // lyte_force_jshead(); function lyte_force_jshead() { add_filter('wp_head', lyte_init); global $lynited; $lynited=true; } /** function to filter out httpv/a links from description tag as generated by all in one seo pack */ // add_filter('aioseop_description','lyte_filter_aioseop_description'); function lyte_filter_aioseop_description($description) { return preg_replace('/\shttp(v|a):\/\/([^\s<]*)/','',$description); } /** function to override thumbnail used for a video */ // add_filter('lyte_match_thumburl','lyte_my_own_thumburl'); function lyte_my_own_thumburl($thumb) { return "http://images.vrt.be/mobile320/2014/08/05/8570f3aa-1c9e-11e4-b923-00163edf75b7.jpg"; } /** change lyte css, for example to load Robota fond and force bottom control visible */ // add_filter('lyte_css','fgo_lyte_change_css',10,1); function fgo_lyte_change_css($lyte_css) { // import robota $lyte_css="@import url(https://fonts.googleapis.com/css?family=Roboto&subset=latin,latin-ext);".$lyte_css; // show bottom control $lyte_css.=" .ctrl{display:block !important;}"; return $lyte_css; } /** don't do lyte on mobile to avoid users having to press play twice */ // add_filter('lyte_do_mobile','no_lyte_on_mobile',10,0); function no_lyte_on_mobile(){ return false; } ?>