WordPress.org

Codex

User:Hakre/Wordpress-Programming

Back to my Page

This page is a collection of Programming paradigm, patterns and anti-patterns that can be found in the Wordpress code-base.

Hooks / Actions / Filters

The principles of the Hooks in WordPress are also known as Pointcuts in programming. They are comparable to Signal programming. Core and Add-On code can subscribe to a specific Hook by using the Hook's Tag (name of the hook represented by a string) and a callback (code to be executed when the signal fires, represented by a callback).

Server Abstraction

To make Wordpress run in multiple host configurations -> Layers. Examples: HTTP Transport, Filesystem. Pattern: Strategy, Proxy, Facade.