X

Register a plugin

If you have some awesome code in your functions.php-file, and want to be able to deactivate it without having to erase the code, or just want to share it with other WordPress-users, you can add a few lines of code to make a plugin out of it.

Put your code in a separate file and add it to wp-content/pugins/, and add the code in the top of the file.

Then go to Plugins in WP Admin and activate the new plugin!

Code Snippet:

<?php
/*
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?
*/
?>

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!