X

How to Register a Plugin in WordPress

Snippets by IsItWP

Are you looking for a way to register a new plugin? While there’s probably a plugin for this, we have created a quick code snippet that you can use to archives display all post types in WordPress.

Instructions:

All you have to do is create a new PHP file and add it to wp-content/pugins/. Then add the code in the top of the file.

/*
Plugin Name: Plugin Name
Plugin URI: http://example.com/the-plugin
Description: A brief description of the Plugin.
Version: 1.0
Author: Your name
Author URI: http://example.com
License: GPL2?
*/

Go to Plugins in WP Admin and activate the new plugin!

Note: If this is your first time adding code snippets in WordPress, then please refer to our guide on how to properly add code snippets in WordPress, so you don’t accidentally break your site.

If you liked this code snippet, please consider checking out our other articles on the site like: 9 best WordPress auction plugins to built the next eBay and how to secure your WordPress forms with password protection.

Comments   Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!