Are there any books, websites or lectures that explain the built-in WordPress classes? I would really like to learn how WordPress works internally.

I've dug up the core files on trac and even went through the class reference on codex but yet I find it difficult to learn this way.

I know this is not a place to be asking for resources but everywhere I search the results are theme/plugin tutorials. I really want to understand the internal working of WordPress, can anyone give me pointers to go ahead with this? My PHP skills are just above intermediate

up vote 9 down vote accepted

https://developer.wordpress.org/reference/ is sometimes more useful or other links on that page like Getting Started with WordPress. But you're better off with running Query Monitor to see what is happening on each page then looking up the concepts individually. I don't think anyone learns WP in a day. I think they typically focus on a single topic at a time after referencing existing themes and plugins. GenerateWP can jumpstart you in a better direction as well by creating well-form code.

Part of the journey to learn is being able to see what is happening when you test new ideas. I highly recommend the tools below.

Good Stack Exchange Answers;

Interactive diagram for the template hierachy

http://www.rarst.net/images/wordpress_core_load.png

  • 1
    great share and great pointers – prosti Oct 17 '16 at 9:24
  • Was this answer helpful to your question? – jgraup Nov 28 '16 at 13:45

I suggest you the following approach. You download WordPress. Use the Text editor with the search feature, like Atom-editor, or Sublime and read the comments. You may get the idea about what classes exists, and how they came in to WordPress.

/**
 * Requests for PHP
 *
 * Inspired by Requests for Python.
 *
 * Based on concepts from SimplePie_File, RequestCore and WP_Http.
 *
 * @package Requests
 */
class Requests {

This one came into WordPress from the author that also works on SimplePie project and works on REST API.

Find the author, watch the videos, and you will soon know more than you can imagine.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.