From the course: PHP for WordPress
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Theme development in the age of the Block Editor
From the course: PHP for WordPress
Theme development in the age of the Block Editor
- [Instructor] The block and site editor have made considerable changes to how themes are developed in WordPress. Let's explore how it works and PHP's role in all of it. First, to maintain backwards compatibility, the "old way" of developing themes still works. So if you come across an older theme courses or tutorials, they won't break modern WordPress sites, at least not at the time of this recording. But there's no doubt that the approach has changed. Today, there are many non-PHP components. To create custom blocks, you need to install Node.js and have an understanding of React and JavaScript development. And in themes, there are two prominent places where PHP has been replaced. First is the site settings. What used to be PHP and customizer-driven is now housed in a file called theme.json. Here you can set default styles for the site, define variation styles, add theme settings, and even address templates. And speaking of templates, this is the other prominent place where PHP has…
Contents
-
-
-
-
-
-
(Locked)
The functions file2m 53s
-
(Locked)
Copying Hello Dolly5m 3s
-
(Locked)
WP_Query4m 10s
-
(Locked)
Hooks, actions, and filters4m 41s
-
(Locked)
PHP in the Block Editor1m 29s
-
(Locked)
Theme development in the age of the Block Editor3m 3s
-
(Locked)
Creating a plugin10m 56s
-
(Locked)
Is PHP enough?1m 42s
-
(Locked)
-