WordPress Plugin Development - Part 36 - Create a Custom Widget

Поделиться
HTML-код
  • Опубликовано: 20 янв 2025

Комментарии • 29

  • @czgogo
    @czgogo 6 лет назад +7

    Hi, thank you for all your tutorials, they are great!
    I think there is a typo in MediaWidget.php on line 54 (time 23:18), the function should be apply_filters.

    • @alecaddd
      @alecaddd  6 лет назад

      Thanks for the heads up

  • @AMichagin
    @AMichagin 3 года назад +1

    While Visual Studio Code is a "Microsoft Product", it also exists as open-source and is managed by a subteam of developers from Microsoft.

  • @masoudsadeghi1315
    @masoudsadeghi1315 4 года назад

    Hi everybody, I guess you all enjoyed watching these videos and Thank you Alessandro for this... I have a question. I want to add some HTML tags into admin post-new page when the plugin which I've developed Activated. How can I do this?

  • @maxeminem777
    @maxeminem777 6 лет назад +1

    Nice, I love to get notification from new plugin development series video, keep it up :)
    Also, I think you didn't updated the source code on GitHub, just a remainder.

    • @alecaddd
      @alecaddd  6 лет назад +1

      Oh, you're right, thanks for the heads up :D

    • @maxeminem777
      @maxeminem777 6 лет назад

      Still no update lol :3

  • @anilkumar_bora
    @anilkumar_bora 4 года назад

    can you explain me how to install composer and how to use?

  • @yt_blackeyepg
    @yt_blackeyepg 3 года назад

    Just FYI If you wonder why your widget does not show up on the admin page, maybe check this:
    be careful with typos in the *add_action* method.
    It took me quite some time to notice that it is 'widgetS_init' instead of 'widget_init' ..

  • @shrijantripathi
    @shrijantripathi 6 лет назад +1

    Most awaited 😊😊

    • @alecaddd
      @alecaddd  6 лет назад +1

      Sorry for the delay :D

    • @shrijantripathi
      @shrijantripathi 6 лет назад

      Alessandro Castellani it's alright teacher 😀😀

  • @RichardAarnink
    @RichardAarnink 6 лет назад

    Hi, I have an issue with the Alecaddd widget, It does show in the widget menu (so it is registered), it also works in the sidebar (like you show in your movie). But if I add the widget to a page (using SiteOrigin as page builder) right after I update/save the page Wordpress reports that the widget is missing. The widget states "missing widget" and includes a large ID number. How should I fix this?
    if I copy the code for Lesson 36 (and rename the directory to Alecaddd-plugin) the plugin does not activate, I need to copy the Vendor directory from lesson 22 as well. Is it on purpose that this directory is missing from lesson 23 onwards?

    • @RichardAarnink
      @RichardAarnink 6 лет назад

      Could it be a bug in SiteOrigin, I found a bug report for an older version of SiteOrigin mentioning named spaced widgets

    • @alecaddd
      @alecaddd  6 лет назад +1

      For the vendor directory, you should simply trigger composer install like I showed in the tutorial.
      Regarding your issue with the Widget, I don't know if Site Origin requires some specific configurations to make it compatible. This method I'm using is the official supported method of WordPress, so I'm not sure what could be the problem.

  • @AMichagin
    @AMichagin 3 года назад

    For anyone who jumped to this video, skipping Gulp -- remember to add the WidgetController to the list of services in Init.php. Otherwise, the register function will not be called and the widget will not get registered.

  • @krimbelkacem5751
    @krimbelkacem5751 6 лет назад +1

    thank you very much

  • @ruipeng1624
    @ruipeng1624 6 лет назад

    Sir, please upload create an ajax Login Form Part II

  • @Dr.Shinto
    @Dr.Shinto 6 лет назад

    Why doesn't your plugin work on a MultiSite?

    • @alecaddd
      @alecaddd  6 лет назад

      Because I'm not coding it for multisite, I will probably make a couple of videos dedicated to the topic, but if you want, of course, you're free to update it for your needs.

  • @eltacemiraslanov1782
    @eltacemiraslanov1782 6 лет назад

    atom editor? theme name?

    • @alecaddd
      @alecaddd  6 лет назад

      VSCode, I said it in the video and there's a link in the top right Card list of the video.

  • @madalinb7994
    @madalinb7994 6 лет назад

    i dont get it...it doesnt work for me, i try to debug it but i cant ,,die,, nothing, even in controller, im lost :(
    edit:: Put WidgetController in init.php xD

    • @alecaddd
      @alecaddd  6 лет назад

      Check my source code on GitHub if you have any issues

  • @fatimajahaf1412
    @fatimajahaf1412 6 лет назад

    Where is ur laravel course T-T
    U once told me it would be in January and now we are at April
    ..sorrrry for being annoying its jst u have an amazing way to cover and explain everything needed ...^^
    Please make it one of ur soonest future plan ^^

    • @nobir98
      @nobir98 6 лет назад

      be patient it will be on May :D

    • @fatimajahaf1412
      @fatimajahaf1412 6 лет назад

      Nobir Hossain he mentioned that??

    • @alecaddd
      @alecaddd  6 лет назад +2

      Thanks for the passion for my videos. Unfortunately, because I do this as a hobby and I have a full-time job, I can't guarantee or respect the dates I set. Every time I say "I'm gonna publish this series this day", it's always mostly what I'd like to do and what I try to achieve. But everything depends on how busy I am at work, with my family, and with other side projects which I can't postpone.
      I hope to start the Laravel series early next month, we'll see.
      Happy Coding!

  • @billiemead1967
    @billiemead1967 Год назад

    How stupid of me. For anyone who can't find the Widgets, make SURE you are using a theme that has Widgets. The default WP themes do not for the most part :(