PHP Code: WordPress is a time machine

Jorge Castro
1 min readApr 23, 2020

I worked developing plugins for WordPress years ago, many many years ago. Then, I decided to move to a greener pastures, why? because there is not market when the competitors spoil the same service works for practically peanuts.

However, for a project, I decided to look at the code of WordPress and O_O

  • It still uses an old naming convention “wp_class_someclass” I can understand it is because legacy support but..
  • It doesn’t use namespaces at all.
  • It uses lots of includes_once. Why? It is because it is not using namespaces. Plugins uses namespaces but WordPress is like to work in PHP 4.0
  • Mixed html and code.
  • And a lot of hacky methods there and here.

WordPress is a truly time machine.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response