Building a WordPress plugin from scratch, including extensible features

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.พ. 2025
  • In this "live" video Mark writes a plugin from scratch to allow authors to add social profile links to their site and then output these as a widget in a widgetised area.
    The plugin is also built using WordPress' extensible features, meaning other developers can build upon and modify it safely.
    View the code used in the video here:
    highrise.digit...
    ----------
    Follow us here:
    LinkedIn: / highrisedigital
    Facebook: / highrisedigital
    Twitter: / highrisedigital

ความคิดเห็น • 21

  • @esraakgul6209
    @esraakgul6209 ปีที่แล้ว

    very useful and everything is so clear. Thank you !

  • @ckarcher
    @ckarcher 3 ปีที่แล้ว +14

    As I am watching this, I constantly wonder what the end result will look like. I think if you showed this at the start, it would be easier to follow your steps and comments. I am very new to plugin development, someone more experienced may find it easier to follow.

    • @HighriseDigital
      @HighriseDigital  3 ปีที่แล้ว +2

      Thanks for your comment Christian and I think you make a valid point. [M]

    • @animeamvshorts6316
      @animeamvshorts6316 3 ปีที่แล้ว +1

      @@HighriseDigital Thanks for video. I want to make a custom style plugin. It will allow change body, left menu, and top menu by switch radio buttons. Like it realized in the profile section, where we can change color theme. But I am disappointed with AJAX. Can you help me with advice. I am looking just for simplicity solution.

  • @adiyogi5800
    @adiyogi5800 2 ปีที่แล้ว

    Hey, in every wp plugin creation video on TH-cam I see that the wp data is available locally not on hosting provider. Can you please make a video of how set up things when data is stored on hosting provider? Thank you 🙏🏻

  • @theman7050
    @theman7050 3 ปีที่แล้ว +1

    I want to love this but theres just too much this and that in regards to the filter tree to keep up.
    Will slowly go through the code in the description link hoping to make sense. Thanks for the effort btw :)

  • @RatherBeCancelledThanHandled
    @RatherBeCancelledThanHandled 2 ปีที่แล้ว

    Is Wordpress plugin accessible and viable for a individual developer to make money on ? How hard is getting initial traction ?

  • @TonyGirling
    @TonyGirling 4 ปีที่แล้ว +2

    Great job reinforcing the use of Filters for extensibility. What are your views on functions vs classes for plugin code?

    • @HighriseDigital
      @HighriseDigital  4 ปีที่แล้ว +2

      Personally I don't use a class based approach to coding PHP - know as Object-Oriented Programming. This is just something I have never really fully learned and therefore still use a more procedural method which has worked up until now.
      However, many WordPress developers that I know and respect probably can't believe that I am still doing this "old school" and will swear blind that OOP is the best option.
      I guess take a look for yourself at OOP and then make a judgement [M]

    • @TonyGirling
      @TonyGirling 4 ปีที่แล้ว +1

      @@HighriseDigital I guess it's down to which direction developers come into WP dev. I'm from a C# background so jump straight to the OOP way of doing things. Functional programming vs OO is another debate. Cheers Mark.

    • @arturotorres6531
      @arturotorres6531 3 ปีที่แล้ว

      @@HighriseDigital dd

  • @EdwardCox2016
    @EdwardCox2016 2 ปีที่แล้ว

    Thank you Mark. Very helpful indeed as I am in the process of learning to develop a WordPress Plugin. Do you have an example doing the same sort of thing but not using Customise and Widgets? i.e. Plugin that takes a few values/input from Admin are and displays values/display on Public/front end? Keep up the excellent work. Edward

  • @tg9754
    @tg9754 2 ปีที่แล้ว

    I'm looking for suggestions. I have a web app running on a Linux web server with aMySql db backend. Where can I find a real life example of a WP app that was created from an app like I have? It's a scheduling application for employees of a service company. I posted this on another video but thought this one was newly posted and be a better place for my question.

  • @hbela1000
    @hbela1000 3 ปีที่แล้ว

    very good, thx.

  • @amanahmed9910
    @amanahmed9910 3 ปีที่แล้ว

    How does your LIST VIEW look.
    Mine look like this:
    Footer #1
    Legacy Widget
    Heading
    Text
    Footer #2
    Group
    Heading
    Archives
    Group
    Heading
    Categories
    Inactive widgets

  • @charlesluck8921
    @charlesluck8921 4 ปีที่แล้ว +2

    After 30 years of IBM COBOL, I'm a procedural, linear thinker, and it is how I solve problems. I don't fully understand the OOP approach; the code doesn't speak to me. But that is neither here nor there. This video assumes a level of knowledge concerning WordPress internals that I do not have, or maybe my familiarity with PHP is the problem, it made no difference. I can see the profile arrays, they look reasonably simple, but I do not know what you're talking about when you say "filters". I make my coffee through a filter. Filters can be thought of in terms of what they allow through, or in terms of what they don't allow through. What kind of filter is this? Besides, shouldn't these profiles be in a database?

    • @HighriseDigital
      @HighriseDigital  4 ปีที่แล้ว +1

      To learn more about WordPress actions and filters take a look at my article here highrise.digital/blog/wordpress-hooks-action-filters/

  • @adsensedd
    @adsensedd 3 ปีที่แล้ว +4

    I hate how you skipped over how add_filter actually works and then spent ages explaining the contents of your array. Skip the interesting part, focus on the mundane. But thanks for the effort.

    • @HighriseDigital
      @HighriseDigital  3 ปีที่แล้ว +3

      Thanks for the feedback, Pablo. 😚