Advertisement
phpface

Untitled

Dec 25th, 2015
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. if( ! function_exists( 'videotube_post_archive_to_video_archive' ) ){
  2.     /**
  3.      * @param unknown_type $args
  4.      * @return string
  5.      */
  6.     function videotube_post_archive_to_video_archive( $args ) {
  7.         $args['post_type'] = 'video';
  8.         return $args;
  9.     }
  10.     add_filter( 'widget_archives_args' , 'videotube_post_archive_to_video_archive', 10, 1 );
  11.     add_filter( 'widget_archives_dropdown_args' , 'videotube_post_archive_to_video_archive', 10, 1 );
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement