Elevate Your Plugin Development with Hook-Driven-DevelopmentAfter the previous article in this series was very technical, today we'll take a breather and indulge in a slightly more theoretical piece. Our topic is Hook-Driven-Development and why you too should implement it in your plugins. In WordPress plugin ...May 25, 2023 · 14 min readhashnode.marcuskober.de
How to register WordPress hooks with PHP attributes: A step-by-step guideIn this article, I will discuss how and why WordPress hooks are used in plugins, and how we will use PHP attributes for registering hooks in classes effectively and clearly. What are hooks and how do they work? Since I assume a certain level of knowl...May 19, 2023 · 24 min readhashnode.marcuskober.de
Coding standards part 2: .editorconfig, documentation and strict typesIn the previous article, we already learned a lot about coding standards, and today I like to discuss three more points: the file .editorconfig, the documentation of your code, and the declaration of strict types. The file .editorconfig The .editorco...May 16, 2023 · 7 min readhashnode.marcuskober.de
Autoloading, coding standards, and file structure in WordPress plugin developmentIn the last article, I explained the use of namespaces, which we need today to establish autoloading, which simultaneously defines our file and folder structure. Declare classes in their own PHP files To keep our code clear, we distribute the code se...May 10, 2023 · 14 min readhashnode.marcuskober.de
Namespaces in WordPress plugin developmentIn this article I'll point out, what's the reason for using namespaces in our WordPress plugins and what namespaces are. We will learn, that namespaces are important for the upcoming topics in this series. The problem with naming constants, functions...May 3, 2023 · 5 min readhashnode.marcuskober.de