Pippins Plugins
  • Email
  • Facebook
  • Feedburner
  • Github
  • Google
  • Twitter
  • Vimeo
  • Youtube
  • Rss
  • About
  • News
  • Join the Site
    • Member Benefits
    • Member Plugins
    • Email Notifications
  • Plugin Store
    • Affiliate Area
    • Checkout
  • Plugins
    • Plugin Portfolio
      • Plugin Portfolio – List View
    • Free
    • Premium
    • Member Plugins
    • Coding Standards
    • Get Plugin Support
  • Tutorials
    • Series
      • Plugin Development 101
      • Creating a User Follow System Plugin
      • Customizing Restrict Content Pro
      • Displaying Content with Easy Content Types
      • Writing Your First WordPress Plugins, Basic to Advanced
      • Working with Widgets
      • User Submitted Image Galleries
      • Plugin Thoughts
      • Integrating Stripe.com with WordPress
      • WordPress Rewrite API
    • Member Exclusive
      • Free Members
      • Subscriber Only
    • Difficulty
      • Beginner
      • Intermediate
      • Advanced
    • Action and Filter Hooks
    • Ajax
    • Custom Post Types
    • External APIs
    • Short Codes
    • Taxonomies
    • Video Tutorials
    • Widget Tutorials
    • WordPress Admin / Dashboard
    • Working with jQuery
    • WordPress Database
    • Writing Plugins
    • Tag Index
  • Reviews
  • Support Forum
  • Contact
    • Support the Site
    • Request Code Review
    • Plugin Support

Plugin Development 101 – What Makes a Plugin?

Posted on January 8, 2013 by Pippin in Beginner, Member Restricted, Subscriber Only, Tutorials, Writing Plugins 2 Comments
Home» Tutorials » Beginner » Plugin Development 101 – What Makes a Plugin?
wordpress-plugin-development_101
Tweet
Love It - 3
This entry is part 2 of 8 in the Plugin Development 101 Series
← Introduction to WordPress Plugin Development 101Plugin Development 101 – General Best Practices →
  • Introduction to WordPress Plugin Development 101
  • Plugin Development 101 – What Makes a Plugin?
  • Plugin Development 101 – General Best Practices
  • Plugin Development 101 – An Intro to Filters
  • Plugin Development 101 – Registering a Custom Post Type
  • Plugin Development 101 – Intro to Short Codes
  • Plugin Development 101 – Intro to Loading Scripts and Styles
  • Plugin Development 101 – Introduction to Adding Dashboard Menus

In this first real part of the Plugin Development 101 tutorial series we look into what makes a plugin. How is a plugin different than any other .php file? How do you make WordPress recognize your code as a plugin?

A plugin in WordPress is really nothing more than a PHP file (or multiple PHP files) with a very specific piece of information included at the top of the file that has been placed in the wp-content/plugins/ folder.

There is no minimum or maximum for what a plugin can or must do. Plugins can be a single line of code, or 50,000 lines of code. Regardless of the size of a plugin, it is defined as a plugin in exactly the same way: by a piece of meta data placed in the main file.

At the top of every WordPress plugin is a comment block that contains information about the plugin:

  • The name of the plugin
  • A brief description of the plugin
  • The URL of the plugin’s homepage
  • The author of the plugin
  • The author’s website
  • The plugin version number

The meta data is always placed in a comment block, so like:

You must be logged in and have an active premium membership to view the rest of this content. Register or login from the sidebar.

Tweet Follow @pippinsplugins

2 comments on “Plugin Development 101 – What Makes a Plugin?”

  1. softmachine says:
    June 8, 2013 at 11:41 pm

    Is it me or does this video not work…?

    Reply
    • Pippin says:
      June 9, 2013 at 10:26 am

      Works just fine for me. What browser are you on?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Login

Lost your password?

Please enter your username or e-mail address. You will receive a new password via e-mail.

  • Facebook Become a Fan Like

  • Twitter Subscribe on Twitter Follow

  • YouTube Follow my Videos Subscribe

  • RSS Feed Subscribe with RSS Subscribe

Easy Digital Downloads

Most Loved

  • Love It Pro for WordPress
  • Write a “Love It” Plugin with Ajax to Let Users Love Their Favorite Posts / Pages
  • Simple Notices Pro Plugin for WordPress
  • User Bookmarks for WordPress
  • Front End Registration and Login Forms Plugin

Similar Plugins and Posts

Latest Premium Content

  • Plugin Development 101 – Introduction to Adding Dashboard Menus
  • Plugin Development 101 – Intro to Loading Scripts and Styles
  • User Follow System – Part 5
  • Plugin Development 101 – Intro to Short Codes

Latest Tutorials

  • Storing Session Data in WordPress without $_SESSION (19)

    The term Session in web development refers to...

  • Test Your Plugins with RTL (1)

    Right-To-Left languages are those that...

  • Submitting Your First Pull Request to a WordPress Plugin on Github (5)

    Github is an extremely popular tool for managing WordPress plugins, and one...

Enter your email to receive automated updates when new posts are published

WP Core Contributions

  • [24316]

View the ticket on Trac.

WP Codex Contributions

  • Function: shortcode exists
  • Function: has shortcode
  • Function: shortcode exists
  • Function: shortcode exists
  • Function: has shortcode

View all 41 changes in the Codex.

Latest Tweets

  • Could not fetch Twitter RSS feed.

Topics

hook Tom McFarlin meta box get_user_meta Rémi Corson contextual help wp_enqueue_script register_setting Sugar Event Calendar attachments shortcodes campaign monitor add_options_page authors mail chimp attachment image forms short codes plugin do_action login Related posts post types apply_filters comments recent posts short code bbpress taxonomies custom post type gallery images Ajax Stripe taxonomy jquery widgets users add_filter easy content types add_action widget restrict content pro easy digital downloads

Weekly Newsletter

Useful Links

  • Join the Site
  • Plugin Store
  • Affiliate Area
  • Tag Index
  • Support the Site
  • Suggest a Tutorial
  • Random Post
  • Contact

Monthly Archives

(c) 2013 Pippin's Plugins