WordPress plugin development using OOP

后端 未结 4 1148
遇见更好的自我
遇见更好的自我 2021-02-05 13:19

I am new to plugin development. So please correct me, wherever I get it wrong.

I have a website which needs a players plugin with the following needs:-

  • An
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-05 14:13

    I often download plugins to look at the code hoping I’ll learn something from the developers methods and coding style. Often I find myself frustrated reading through poorly written plugins. It’s not that they’re bad developers, they just haven’t focused enough on alternative coding styles and refining how they go about programming their plugins. Here’s a quick step-by-step on how I write my WordPress Plugins hoping to influence other developers.

    Steps on how to getting started with plugin developement

    Step 1 – Create your file and let it be known as a plugin

    Step 2 – Create the objects of your plugin

    Step 3 – Adding your actions and filters

    Step 4 – Adding settings/options to your plugin

    Finish up your code

    Reference: Writing a WordPress Plugin Using Classes

提交回复
热议问题