Mb Youtube Videos Wordpress Plugin is used by 53 websites. Among 53, 0 site is within top 10,000 and 0 site is within top 100,000 websites.

Wordpress Plugin Information of

Plugin Meta Name Plugin Meta Information
Plugin Name
Plugin Description The YouTube videos widget lets you quickly and easily display your most recent YouTube videos in your blog's sidebar.
Detail Plugin Description

The YouTube videos widget lets you quickly and easily display your most recent YouTube videos in your blog's sidebar.


  • The YouTube videos widget is fully-based on the WordPress Plugin API.
  • Uses hooks and filters to allow for maximum hackability by theme designers and developers.
  • Organized straightforwardly so that it's easy to modify and style.


The YouTube videos widget is ready to use as-is, although you can easily customize it to your liking with a bit of code.

You can also insert a plain list of your recent videos into posts and pages with the shortcode mechabyte_youtube. For example, to load 5 videos from freddiew that open in new tabs, you'd use [mechabyte_youtube username="freddiew" videos="5" tab="true"].

Custom Styles

The YouTube videos widget loads it styles by hooking into WordPress' wp_enqueue_scripts action. To remove the default styling you need to remove the our enqueue_scripts function from the hook.

    remove_action( 'wp_enqueue_scripts', array( 'mechabyteYouTube', 'enqueue_scripts' ) );

Custom Output

The end user has two options of displaying their YouTube videos: in plain or decorated lists. When modifying the output of the plugin you must use one of two filters that this plugin uses: mbYT_construct_plain and mbYT_construct_decorated. Before you add your own functions to either filter, you must remove the default ones that are used automatically: mbYT_construct_plain_default and mbYT_construct_decorated_default.

    remove_filter( 'mbYT_construct_plain', array( 'mechabyteYouTube', 'mbYT_construct_plain_default'), 10, 3  );
    remove_filter( 'mbYT_construct_decorated', array( 'mechabyteYouTube', 'mbYT_construct_decorated_default'), 10, 3  );

Now it's time to get creative. When creating a function that will loop through the videos you have complete control over how you want to display the content. Just keep in mind that in the end, you should be outputting <li> elements. When filters are being applied to the YouTube content, there are three arguments that are being passed through: $youtube_videos (array, the array of videos), $number (integer, the number of videos the user wishes to display), and $tab (boolean, a true/false value of whether or not the user wants to open video links in a new tab). Keep in mind that you have access to the following pieces of information when creating your video loop:

    $item['title'] // Video title
    $item['videoID'] // Video ID
    $item['viewCount'] // Video view count
    $item['published'] // Video publish date -- UNIX
    $item['duration'] // Video duration in hh:mm:ss
    $item['numLikes'] // Video likes count
    $item['link'] // Video link
    $item['image']['default'] // 'Default' thumbnail (low quality)
    $item['image']['mqdefault'] // Medium quality thumbnail
    $item['image']['hqdefault'] // High quality thumbnail

Here's an example of some code that adds a custom function to our mb_construct_plain filter (assuming we've already removed the default functions). Keep in mind the 3 at the end. That lets WordPress expect our three arguments that will be passed through. Check out WordPress' add_filter() page for more info.

    add_filter( 'mb_construct_plain', 'construct_plain_example', 10, 3 );

    function construct_plain_example( $youtube_videos, $number, $tab ) {
        $output = '';
        foreach( $youtube_videos as $youtube_video ) {
            // If we've reached the user's display limit, end the loop
            if( $i == $number )
            $output .= '<li>';
            $output .= '<a href="' . . '"';
            // If the user has selected to open videos in a new tab, specify the link target
            if($tab) {
              $output .= ' target="_blank"';
            $output .= '>';
            $output .= $youtube_video['title'];
            $output .= '</a>';
            $output .= '</li>';

        return $output;

Pretty basic, but it allows you to see a general example of how to loop through the objects and return the modified data. The above code will produce a list element like this one:

    <li><a href="http://www.youtube.com/watch?v=3L-rrkyvApU" target="_blank">Real Life Portal Gun</a></li>
More Information Wordpress Official Plugin Repository

Top 53 Websites built with Wordpress plugin

125,245 favicon of COPLANET.IT COPLANET.IT
Console Planet Network - CoPlaNet.it | Il mondo dei Videogiochi
Diane Sanfilippo | New York Times bestselling author of "Practical Paleo" and "The 21-Day Sugar Detox" | Home of the Balanced Bites Podcast
138,084 favicon of HARDBLOXX.DE HARDBLOXX.DE
Hardbloxx - Hardware-, Software-, und Spieletestberichte von Gamern für Gamer
vidiyalfm | விழுந்தால் விதையாய் விழுவோம். எழுந்தால் விருட்சமாய் எழுவோம். | Vidiyal Fm | Online Radio | 24 hrs Updataion |
Passando Blush » Blog de beleza, maquiagem, cosméticos e esmaltes
214,756 favicon of SUDPRESS.IT SUDPRESS.IT
SUD Giornalismo d'Inchiesta | Giornale on line, Notizie di Sicilia, Cronaca di Catania, Cronaca di Palermo, News, Politica, Economia, Sport, Cultura, Video, Fotogallery, Interviste, Giornalismo d'inchiesta, testata on line, quello che gli altri non vi dicono
233,847 favicon of CASAHAUS.NET CASAHAUS.NET
Casa Haus - Decoración - Ideas de Decoración, Diseño de Interiores e inspiración para tu hogar
233,964 favicon of IDPIELTS.ME IDPIELTS.ME
365,892 favicon of LASALLE.MX LASALLE.MX
Universidad La Salle, Ciudad de México | Profesionales con Valor
Tecnophone.it Tecnologia e cellulari per tutti i gusti.
the Blogging Witches | Unofficial!!! Coins, level help, tips and videos for ALL Facebook King levels!
411,034 favicon of APKTANK.COM APKTANK.COM
APKTANK - Download android apps and games for free for all smartphones and Tablets.
الصفحة الرئيسية - يلافورما
Revista Open Inicio - Revista Open
راهنمای تحصیل در فرانسه
Etre au courant de toute l'actualité sur la fiscalité automobile
Cultura e Mercado - desde 1998 | para quem vive de cultura
615,694 favicon of ANSARH.COM ANSARH.COM
شبكة أنصار الحسين (ع) | منذ عام 2000 م
Loudoun's New Downtown | Mixed-Use Community in Loudoun County | One Loudoun
Buzz Land
Findingnana » Blog
The Urban Fitness Club - The Urban Fitness Club
Cosecha Nacional | Otra cosa es con guitarra
Orlando Local Guide | A Travel and Entertainment Guide
Richard Koch | Author, Investor, Speaker
30,000,000 favicon of ANSARH.US ANSARH.US
شبكة أنصار الحسين (ع) | منذ عام 2000 م
The Truth Television - "We're Truth, We're Television"
Homepage - Sasquatch Glass
Financial Afrik | Toute la finance Africaine
30,000,000 favicon of ODMCHURCH.COM ODMCHURCH.COM
30,000,000 favicon of MASLIGA.COM.AR MASLIGA.COM.AR
Mas Liga | San Pedro
30,000,000 favicon of SAINTSAV.CO.UK SAINTSAV.CO.UK
Plasma TV Hire London and Surrey
30,000,000 favicon of ALWEFAQ.NET ALWEFAQ.NET
alwefaq - جمعية الوفاق الوطني الإسلامية
30,000,000 favicon of ATOZFILMS.COM ATOZFILMS.COM
AtoZFilms - Telugu Cinema News | Telugu Cinema | Movies | Telugu Cinema Reviews | Telugu Movie Reviews | Movie Trailers | Movie Reviews | Photo Galleries | Hot Photos | Tollywood News | Videos | Telugu Movies Portal | Interviews
30,000,000 favicon of 2012SPIRIT.DE 2012SPIRIT.DE
Gehvoran – Blog & Magazin für Bewusstseinswandel |
Young And Catholic Blog
30,000,000 favicon of ARAB-OTAKU.NET ARAB-OTAKU.NET
عرب أوتاكو - Arab Otaku | للأنمي و المانجا
30,000,000 favicon of ISKATE.CO.ZA ISKATE.CO.ZA
30,000,000 favicon of WEBMEDIA.COM.VN WEBMEDIA.COM.VN
Web Media – Công ty Web Media “Dẫn đầu về Media Online”
30,000,000 favicon of WPMEDIA.PRO WPMEDIA.PRO
WP Media Pro - Jason Tucker - Video guy and WordPress Developer
NeoParadigmas -
Pokemon Rumors | Pokemon News | Pokedex
Bang on Style
30,000,000 favicon of MARDECHILE.CL MARDECHILE.CL
Portal de los 7 mares
GeorgeLugoJr.com | Helping Network Marketers With Leads, Traffic & Recruiting
30,000,000 favicon of 86BB.COM 86BB.COM
86er Jahrgang - ... sind die besten. Fühl dich wohl, lass dich nieder.86er Jahrgang – … sind die besten. Fühl dich wohl, lass dich nieder.
30,000,000 favicon of 233TODAY.COM 233TODAY.COM
233today | Redefining Ghana's Art and Entertainment Culture
30,000,000 favicon of INFONOTIA.GR INFONOTIA.GR
3vita.gr | 3Β ηλεκτρονική εφημερίδα | ειδήσεις από Βάρη Βούλα Βουλιαγμένη
30,000,000 favicon of IAMPARIAH.COM IAMPARIAH.COM
Pariah Burke - Consulting & Training with Creative & Publishing Workflow Expert Pariah S. Burke | Inspiring, Informing, and Empowering Creative Professionals™
30,000,000 favicon of EATSPORT.NET EATSPORT.NET
News e approfondimento sportEat Sport
Top Dogs By Chris Collins |