From the course: PHP for WordPress
Unlock this course with a free trial
Join today to access over 24,500 courses taught by industry experts.
Copying Hello Dolly
- [Narrator] The best way to add functionality that doesn't necessarily belong in a theme is to add a plugin to your WordPress site. And here, we're going to modify the Hello Dolly plugin. Hello Dolly is a simple plugin that comes with every WordPress installation. In fact, it's the first plugin. It's still included with WordPress to serve as an example for new WordPress developers, like you. Once activated, Hello Dolly will show some lyrics from the song by Louis Armstrong in the top right area of the WordPress admin. We are going to modify this to include text from "The Adventures of Sherlock Holmes" by Sir Arthur Conan Doyle. To get started, go to your local by flywheel area, right-click on your WordPress install, and click reveal in finder. Then click on the site directory, app, public, WP content, and then plugins. Here, we're going to make a copy of the Hello Dolly directory, and then rename it to Holmes. Then we're going to open it in our favorite code editor. You can see once…
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)
-