开发者 |
arnaudban
studio-goliath |
---|---|
更新时间 | 2015年7月17日 20:15 |
PHP版本: | 3.5 及以上 |
WordPress版本: | 4.2.1 |
版权: | GPLv2 |
版权网址: | 版权信息 |
Yes there are somes filters that can help you get the output that you want : the dlvw_dailymotion_video_fields filter, that let you filter the video fields to get from dailymotion. Possible fields can be found here : https://developer.dailymotion.com/documentation#video-fields Example : ` function dlvw_dailymotion_video_fields( $fields ){ array_push($fields, 'duration_formatted'); return $fields; } add_filter( 'dlvw_dailymotion_video_fields', 'dlvw_dailymotion_video_fields' ); ` the dlvw_dailymotion_video_link filter, that let you filter the ouput form each video Example : ` function dlvw_dailymotion_video_link( $output, $video, $widget_instance ){ $thumbnail_size = $widget_instance['thumb_size']; $thumbnail_src = $video->{$thumbnail_size}; $output = " return $output; } add_filter( 'dlvw_dailymotion_video_link', 'dlvw_dailymotion_video_link', 10, 3 );