From the course: WordPress: WP-CLI

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

How WordPress works under the hood

How WordPress works under the hood - WordPress Tutorial

From the course: WordPress: WP-CLI

Start my 1-month free trial

How WordPress works under the hood

- [Instructor] Before we get into WP-CLI, you should understand how WordPress works under the hood because it will help you understand how WP-CLI works in general and get a feel for its capabilities. Most of the time, you'll be interacting with WordPress through a browser and a graphical user interface. When you click something in the interface, your browser tells the server to execute some code and return that result. We'll call this the top-down approach. We're starting at the top-most layer, the browser, and then moving down to the PHP and MySQL layer right through to the server layer. For the most part, WP-CLI commands can be mapped to actions within the WordPress dashboard or functions of WordPress plugins that introduce support for WP-CLI. That's because WP-CLI is using the server to execute WordPress code. So instead of you clicking a plugin's add new to run some WordPress code, you can type wp plugin install and…

Contents