From the course: WordPress: Everything about Plugins

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Creating a simple plugin

Creating a simple plugin

- [Narrator] Now that you know all about plugins and how they work and what they're used for, you may want to actually create a plugin of your very own. And one of the best things about the open source nature of WordPress is that you can. If you know how to write PHP, you're pretty much ready and able to create your very own plugin from scratch. Even if you don't know PHP, you can grab a PHP snippet from somewhere else online that does something you need and then package it up in a specific way so that you can upload it as a plugin. Oftentimes, PHP snippets are added to the core files in order to add a new functionality but doing that can be tricky and sometimes those files can get removed or overridden when updates replace old files. Adding PHP this way as a plugin is safer. It won't get overridden and plugins are easier to disable and re-enable at will. So you can have much more flexibility when it comes to using this code.…

Contents