This is what makes WordPress so flexible. Other hooks are unused place holders that are simply available for you to tap into when you need to alter how WordPress works. Hooks are not just for plugin developers hooks are used extensively to provide default functionality by WordPress core itself. Actions allow you to add or change WordPress functionality, while filters allow you to alter content as it is loaded and displayed to the website user. There are two types of hooks within WordPress: actions and filters. WordPress hooks allow you to tap into WordPress at specific points to change how WordPress behaves without editing any core files. Your new plugin should now be in that list! This page displays a listing of all the plugins your WordPress site has. Log in to your WordPress site, and click Plugins on the left navigation pane of your WordPress Admin. Only one file in the plugin’s folder should have the header comment - if the plugin has multiple PHP files, only one of those files should have the header comment.Īfter you save the file, you should be able to see your plugin listed in your WordPress site. The plugin header comment must comply with the header requirements, and at the very least, contain the name of the plugin. This is a specially formatted PHP block comment that contains metadata about the plugin, such as its name, author, version, license, etc. Now that you’re editing your new plugin’s PHP file, you’ll need to add a plugin header comment. Use whichever editor that is comfortable for you. In the example above, vi is the name of the text editor.