Linux 软件免费装
Banner图

Plugin Name

开发者 arnaudban
studio-goliath
更新时间 2015年7月17日 20:15
PHP版本: 3.5 及以上
WordPress版本: 4.2.1
版权: GPLv2
版权网址: 版权信息

标签

widget video dailymotion

下载

0.1

详情介绍:

Add widget to display your latest dailymotion videos. Just set your Dailymotion's username and choose the number of videos you'd like to display.

屏幕截图:

  • Customizer view of the widget
  • Admin view of the widget
  • How the widget displays with the theme TwentyFifteen

常见问题:

Can it be customisable ?

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 );

更新日志:

0.1