• Technosailor.com
  • Desk of the Editor
  • Venture Files
  • Tech Policy
  • Contenido Español
Technosailor
  • Authors
  • Disclosures
Mar
26
2007

Automatic Activation of Plugins

Posted by: Aaron Brazell

A long time “want” for WordPress, especially since dealing with a large number of blogs at b5media, has been to have a WordPress MU feature that provides a directory whereby all plugins are automatically activated. I have asked for it on back channels for several months now, but it wasn’t until recently that I realized how simple (and how backwards) the same functionality could be. I have to give credit to Barry and Matt at Automattic for pointing this out to me. Oh, Ryan did too.

The answer is the long-time hidden resident of WordPress, the my-hacks.php file. You create a plugin directory where all plugins will be activated from (we call it b5-plugins), and then simply update the my-hacks file as such:


<php
require_once('wp-content/b5-plugins/my-plugin.php');
?>

We could probably go one better and read all the files in that directory into an array an execute, but my security fritz goes off when I get to that level of blind automation.

  • Add to Mixx!
  • Stumble it!
About the Author: Aaron Brazell is the lead editor of Technosailor.com and a social media expert. His passion is to see companies and individuals use the internet and web technologies wisely and effectively to promote their brands and companies. He is Business Development Manager for Lijit and he worked as Director of Technology at b5media from 2005-2008 and is currently an independent consultant.
Tagged: at 9:52 pm -
discussion by DISQUS

Add New Comment

  • Subscribe:  This Thread
  • Go to:  My Comments ·  Community Page
  • Thanks. Your comment is awaiting approval by a moderator.

    Do you already have an account? Log in and claim this comment.

    discussion by DISQUS

    Add New Comment

    close Joe Chill(joechill)
    konvict

    status via twitter

    Murdering the Wayne parents, creating Batman · 2 minutes ago

    recent comments (follow comments)

      View Profile »
      Powered by Disqus · Learn more
      blog comments powered by Disqus
      Freshbooks
      • Recent Posts

        • Why Pay For a Blog Platform?
        • Proudly Powered by FastServers
        • Get a Management System — Now
        • Hints at an $800 Apple laptop, Bloggers Report, Stock up 4 points
        • Internet 2.0, Suck it Up and Lead
      • Recent Comments

        Powered by Disqus
      • Tags

        Aaron Brazell Advertising Apple b5media Blogging book conferences Design entrepreneurship Facebook Finance and Funding Google guest_blogging holidays humor hurricanes_and_natural_disasters interesting job Links Marketing Music nfl Op-Ed Perfect Pitch personal politics pr Predictions productivity Programming Security Social Issues Social Media Social Networking social_issues Sports Tech Industry Technology Technosailor Travel twitter unix Venture Files WordPress you_can_blog

      • License Creative Commons Attribution-Noncommercial-Share Alike 3.0 | Copyright © 2004 - 2008 - Aaron Brazell | Managed Hosting by FastServers.Net.