WordPress OSINT, maintenance or security needs? Reach out!
TLDWP

Plugin: mb-youtube-videos (Used by 15 domains)

(MB) YouTube Widget

👤 Mechabyte 📦 v1.05 🔗 Plugin Homepage

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

Features

  • 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.

Usage

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

  • 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 )
                  break;
                $output .= '
  • '; $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:

        
  • Real Life Portal Gun
  • DomainExposuresHeadersLast Checked
    a*e*i*a*f*e*d*m*a*c*n*e*.org (WP 5.5.18) ⚠️ 🔓 F 2026-05-24 02:06:45
    s*o*s*i*a*a*o*.c*m.mk F 2026-05-23 04:26:57
    f*s*a*i*e*a*t*m*b*l*.fr F 2026-05-20 01:43:44
    b*o*.g*o*a*f*c*s.hu (WP 6.3.8) ⚠️ F 2026-05-19 15:14:44
    r*d*a*d*h*r*f.com (WP 4.6.12) ⚠️ F 2026-05-18 11:32:56
    a*y*o*i*e*e*o*n*.com F 2026-05-16 03:05:26
    r*s*l*s.s*o*s*i*a*a*o*.c*m.mk F 2026-05-13 23:57:05
    a*a*a*e*d*s.com (WP 6.9.4) F 2026-05-13 22:58:03
    y*u*e*e*g*s*o*t.com F 2026-05-13 20:39:56
    b*c*s*u*n*i*e*a*d.com (WP 4.9.26) ⚠️ F 2026-05-12 06:02:40
    s*-*t*i*h*r*t*l*b*n*.de (WP 6.9.4) F 2026-05-10 02:47:35
    b*o*.h*p*y*l*g*n*.com (WP 6.9.4) F 2026-05-09 02:20:26
    t*e*r*t*t*l*v*s*o*.com F 2026-04-30 18:47:51
    t*e*o*e*e*.com (WP 6.9.4) F 2026-04-29 11:21:17
    m*l*e*c*i*a*o*e*l*s*a*e.com (WP 6.9.4) F 2026-04-28 07:36:27

    Top 50 Plugins

    Plugin Count
    elementor 1,754,320
    contact-form-7 1,726,201
    elementor-pro 1,023,432
    woocommerce 799,034
    revslider 604,515
    jetpack 458,801
    js_composer 422,662
    wp-rocket 325,289
    essential-addons-for-elementor-lite 282,799
    gravityforms 257,929
    complianz-gdpr 247,725
    cookie-law-info 224,350
    instagram-feed 223,021
    google-site-kit 216,572
    sitepress-multilingual-cms 215,492
    google-analytics-for-wordpress 209,983
    header-footer-elementor 205,639
    elementskit-lite 198,592
    bluehost-wordpress-plugin 189,609
    gutenberg 158,792
    cookie-notice 145,917
    gutenberg-core 143,187
    wpforms-lite 127,671
    the-events-calendar 127,427
    litespeed-cache 125,867
    gtranslate 124,470
    astra-sites 118,199
    popup-maker 113,405
    woocommerce-payments 111,119
    tablepress 104,688
    honeypot 94,265
    astra-addon 93,304
    coblocks 93,197
    all-in-one-seo-pack 91,550
    wp-smushit 91,448
    duracelltomi-google-tag-manager 91,001
    LayerSlider 89,759
    bb-plugin 89,288
    premium-addons-for-elementor 84,929
    akismet 84,581
    megamenu 83,847
    cleantalk-spam-protect 82,420
    mailchimp-for-wp 82,013
    woocommerce-gateway-stripe 81,354
    ml-slider 78,616
    fusion-builder 77,853
    ewww-image-optimizer 77,141
    formidable 76,561
    borlabs-cookie 76,319
    wp-pagenavi 76,221

    Top 50 Themes

    Theme Count
    hello-elementor 599,515
    Divi 499,956
    astra 415,349
    flatsome 125,689
    Avada 121,634
    generatepress 116,522
    pub 99,092
    oceanwp 81,430
    kadence 76,170
    enfold 70,055
    salient 65,396
    twentyseventeen 54,728
    bb-theme 54,320
    twentytwentyfour 52,991
    cocoon-master 51,730
    h4 50,741
    betheme 50,550
    blocksy 49,223
    dt-the7 44,884
    twentytwentyfive 42,646
    neve 38,282
    Avada-Child-Theme 36,787
    gox 32,884
    woodmart 32,364
    bridge 32,265
    twentytwentyone 31,598
    lightning 30,772
    twentytwenty 29,387
    swell 28,208
    Impreza 25,646
    bricks 25,293
    twentytwentythree 23,684
    Newspaper 22,719
    twentytwentytwo 19,762
    sydney 19,583
    epik-redesign 19,297
    uncode 18,579
    voxel 17,877
    twentysixteen 17,750
    pro 17,574
    storefront 17,445
    extendable 14,540
    Total 14,391
    yith-wonder 13,973
    kubio 13,880
    hello-theme-child-master 12,968
    factory-templates-4 12,761
    themify-ultra 12,708
    yootheme 12,563
    hestia 12,439