Building a WordPress plugin from scratch, including extensible features

Sdílet
Vložit
  • čas přidán 9. 09. 2024
  • 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

Komentáře • 21

  • @esraakgul6209
    @esraakgul6209 Před rokem

    very useful and everything is so clear. Thank you !

  • @ckarcher
    @ckarcher Před 3 lety +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  Před 3 lety +2

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

    • @animeamvshorts6316
      @animeamvshorts6316 Před 3 lety +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.

  • @theman7050
    @theman7050 Před 3 lety +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 :)

  • @hbela1000
    @hbela1000 Před 3 lety

    very good, thx.

  • @EdwardCox2016
    @EdwardCox2016 Před 2 lety

    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

  • @adiyogi5800
    @adiyogi5800 Před 2 lety

    Hey, in every wp plugin creation video on CZcams 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 🙏🏻

  • @TonyGirling
    @TonyGirling Před 3 lety +2

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

    • @HighriseDigital
      @HighriseDigital  Před 3 lety +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 Před 3 lety +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 Před 3 lety

      @@HighriseDigital dd

  • @RatherBeCancelledThanHandled

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

  • @amanahmed9910
    @amanahmed9910 Před 3 lety

    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

  • @tg9754
    @tg9754 Před 2 lety

    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.

  • @charlesluck8921
    @charlesluck8921 Před 3 lety +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  Před 3 lety +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 Před 3 lety +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.