SlideShare a Scribd company logo
WORDPRESS MUST-USE
    PLUGINS
     by Ronald Huereca




                  Presented at WordCamp Norway
                  January 14th, 2012
WHAT IS A MUST-USE PLUGIN?


It’s a plugin that cannot be disabled.
WHY USE MU-PLUGINS?

• Forcritical functionality that must not be disabled (Custom
 Post Types, taxonomies)

• For
    network-wide functionality in Multisite networks that even
 Network Admins can’t disable

• Snippetsof code you can re-use independent of regular
 plugins and themes
BENEFITS OF MU-PLUGINS


• Cannot    be disabled. Ever. Nunca. Aldri.

• Cannot    be edited.

• Easy   to drop in.
DRAWBACKS OF MU-PLUGINS

• Cannot    be disabled. Ever.

• Thereare no automatic updates, so the code must be
 maintained by you.

• No    activation hooks are run.

• MU-Pluginsdo not have the regular folder structure as a
 regular WordPress plugin does.

• You   can bring an entire network down with one PHP error.
wordpress
 WHERE TO
INSTALL AN               wp-content

MU-PLUGIN                        plugins
 inside wp-content

                                 uploads


                                 themes
wordpress
IF THE MU-
PLUGIN FOLDER    wp-content

DOESN’T EXIST,
CREATE IT                 plugins


                         mu-plugins
ADD A .PHP FILE   mu-plugins

AND HAVE
SOME FUN             run-me-always.php
INSIDE AN MU-PLUGIN

 <?php
 	

 //Uhm, just place some code here.
 ?>
YOU COULD GO A LITTLE
  MORE COMPLICATED
  <?php
  /*
  Plugin Name: Metronet Tasks
  Plugin URI: http://www.metronet.no
  Description: A task manager for WordPress
  Author: Metronet
  Version: 1.0
  Requires at least: 3.3
  Author URI: http://www.metronet.no
  */
  require_once( 'metronet_tasks/metronet_tasks.php' );
  ?>
THE LAST     mu-plugins

EXAMPLE
ASSUMES A       run-me-always.php


DIRECTORY           metronet_tasks

STRUCTURE
LIKE THIS:                metronet_tasks.php
WHAT I’VE USED MU-PLUGINS
           FOR

• Initializing   Custom Post Types and taxonomies

• Handling       redirects

• Removing        admin menus

• Removing        dashboard widgets

• Disabling      the admin-bar on the front-end for all users
ALL OF THESE PLUGINS CAN
 BE WRITTEN AS REGULAR
        PLUGINS...
...BUT IF THE FUNCTIONALITY
 IS CRITICAL TO THE PROJECT,
    DON’T EVEN ALLOW THE
     OPTION TO DISABLE.
FURTHER READING
• http://codex.wordpress.org/Must_Use_Plugins

• http://wpmututorials.com/basics/what-is-the-mu-plugins-folder/
Ronald
                                              Huereca




Twitter: @ronalfy
Facebook: http://www.facebook.com/ronalfy
Skype: ronalfy
Slideshare: http://slideshare.net/ronalfy

http://www.wpajax.com (WordPress and Ajax - free e-book)
http://www.ronalfy.com (Personal website - rants and musings )

More Related Content

PPTX
Designing Plugins for Release
PPTX
Professional WordPress Workflow - WPDay 2015
PDF
wp cli- don’t fear the command line
PDF
Client-friendly WordPress Websites
KEY
WordPress Melbourne June Meetup
PDF
Building a community of Open Source intranet users
PDF
Introduction to WordPress REST API
PDF
Plugin development demystified 2017
Designing Plugins for Release
Professional WordPress Workflow - WPDay 2015
wp cli- don’t fear the command line
Client-friendly WordPress Websites
WordPress Melbourne June Meetup
Building a community of Open Source intranet users
Introduction to WordPress REST API
Plugin development demystified 2017

What's hot (20)

PDF
10 things Not To Do With WordPress
PDF
WordCamp Birmingham 2015 - Theme building tricks of the trade
PDF
WordCamp Sheffield 2014 Theme Workflow Presentation
PDF
Rapid WordPress theme development
PDF
Build WordPress themes like a heavyweight - WordCamp Lancaster 2013
PDF
WordCamp Bournemouth 2014 - Designing with data in WordPress
PDF
10 Things Not To Do With WordPress
PDF
WordCamp Birmingham 2015 - Theme building workshop
ODP
Building your first WordPress plugin
PDF
Develop and Deploy Outside the Repo
PDF
Nürnberg WooCommerce Talk - 11/24/16
PPTX
Cross CMS plugin development using AWF
PDF
The Future of-the CMS (Twin Cities DrupalCamp 2015)
PDF
Building SaaS with WordPress - WordCamp Netherlands 2016
PDF
Intro to WordPress Plugins
PPTX
2015 contens präsentation_hunting_bugs
PDF
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
PPTX
WordPress plugin development
PDF
Coding with jetpack
PDF
Intro to wordpress short course
10 things Not To Do With WordPress
WordCamp Birmingham 2015 - Theme building tricks of the trade
WordCamp Sheffield 2014 Theme Workflow Presentation
Rapid WordPress theme development
Build WordPress themes like a heavyweight - WordCamp Lancaster 2013
WordCamp Bournemouth 2014 - Designing with data in WordPress
10 Things Not To Do With WordPress
WordCamp Birmingham 2015 - Theme building workshop
Building your first WordPress plugin
Develop and Deploy Outside the Repo
Nürnberg WooCommerce Talk - 11/24/16
Cross CMS plugin development using AWF
The Future of-the CMS (Twin Cities DrupalCamp 2015)
Building SaaS with WordPress - WordCamp Netherlands 2016
Intro to WordPress Plugins
2015 contens präsentation_hunting_bugs
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
WordPress plugin development
Coding with jetpack
Intro to wordpress short course
Ad

Viewers also liked (14)

PDF
WordPress Plugin Localization
DOC
Selection policy evaluation
DOC
Budget simulation assignment
PDF
Jobvite Social Recruiting Survey Results - 2011
PDF
How to Successfully Take Over a WordPress Plugin
PPT
WordPress and Ajax
DOC
Kindle grant
KEY
WordPress Multisite General Overview
PPT
The Wikification of blackboard
PPT
Wikis powerpoint
PPT
What Is A Wiki
PPT
Las wikis
PPT
Wikis powerpoint
PPT
How to create an educational wiki with sound
WordPress Plugin Localization
Selection policy evaluation
Budget simulation assignment
Jobvite Social Recruiting Survey Results - 2011
How to Successfully Take Over a WordPress Plugin
WordPress and Ajax
Kindle grant
WordPress Multisite General Overview
The Wikification of blackboard
Wikis powerpoint
What Is A Wiki
Las wikis
Wikis powerpoint
How to create an educational wiki with sound
Ad

Similar to WordPress Must-Use Plugins (Quick Overview) (20)

PPT
Gotta have vs must use plugins for WordPress multisite
PDF
Custom to public
PPT
Making the Most of Plug-ins - WordCamp Toronto 2008
PDF
Create a site with Multisite plugin WordPress
PDF
Write your first WordPress plugin
PPTX
Multisite: Lessons I Learned the Hard Way
PPTX
Intro to Plugin Development, Miami WordCamp, 2015
PPTX
Introduction to WordPress Plugin Development, WordCamp North Canton, 2015
PDF
WordCamp Atlanta Presentation
PDF
Creating Your First WordPress Plugin
PDF
BuddyPress and the Future of WordPress Plugins
PDF
A Pocketful of Pro-tips
PDF
Keep Your Code Organized! WordCamp Montreal 2013 Presentation slides
ODP
Writing Plugins for WordPress MU
PDF
Bending word press to your will
PPT
WordPress plugins
PDF
Intro to WordPress Plugin Development
PPTX
Wordpress plugins
PPTX
WordPress Multisite deck
PPT
WordPress Plugin Development- Rich Media Institute Workshop
Gotta have vs must use plugins for WordPress multisite
Custom to public
Making the Most of Plug-ins - WordCamp Toronto 2008
Create a site with Multisite plugin WordPress
Write your first WordPress plugin
Multisite: Lessons I Learned the Hard Way
Intro to Plugin Development, Miami WordCamp, 2015
Introduction to WordPress Plugin Development, WordCamp North Canton, 2015
WordCamp Atlanta Presentation
Creating Your First WordPress Plugin
BuddyPress and the Future of WordPress Plugins
A Pocketful of Pro-tips
Keep Your Code Organized! WordCamp Montreal 2013 Presentation slides
Writing Plugins for WordPress MU
Bending word press to your will
WordPress plugins
Intro to WordPress Plugin Development
Wordpress plugins
WordPress Multisite deck
WordPress Plugin Development- Rich Media Institute Workshop

Recently uploaded (20)

PDF
Elle Lalli on The Role of Emotional Intelligence in Entrepreneurship
PPTX
SELF ASSESSMENT -SNAPSHOT.pptx an index of yourself by Dr NIKITA SHARMA
PPTX
Learn about numerology and do tarot reading
PPTX
diasspresentationndkcnskndncelklkfndc.pptx
PPTX
show1- motivational ispiring positive thinking
PDF
Red Light Wali Muskurahat – A Heart-touching Hindi Story
PDF
Quiet Wins: Why the Silent Fish Survives.pdf
PDF
The Power of Pausing Before You React by Meenakshi Khakat
PDF
The Spotlight Effect No One Is Thinking About You as Much as You Think - by M...
PPTX
Commmunication in Todays world- Principles and Barriers
PPTX
Learn how to prevent Workplace Incidents?
PDF
Top 10 Visionary Entrepreneurs to Watch in 2025
PPTX
Chapter-7-The-Spiritual-Self-.pptx-First
PPTX
Learn numerology content and join tarot reading
PPTX
THEORIES-PSYCH-3.pptx theory of Abraham Maslow
PPTX
Learn how to use Portable Grinders Safely
PPTX
Presentation on interview preparation.pt
PPTX
How to Deal with Imposter Syndrome for Personality Development?
PPTX
Personal Development - By Knowing Oneself?
PDF
My 'novel' Account of Human Possibility pdf.pdf
Elle Lalli on The Role of Emotional Intelligence in Entrepreneurship
SELF ASSESSMENT -SNAPSHOT.pptx an index of yourself by Dr NIKITA SHARMA
Learn about numerology and do tarot reading
diasspresentationndkcnskndncelklkfndc.pptx
show1- motivational ispiring positive thinking
Red Light Wali Muskurahat – A Heart-touching Hindi Story
Quiet Wins: Why the Silent Fish Survives.pdf
The Power of Pausing Before You React by Meenakshi Khakat
The Spotlight Effect No One Is Thinking About You as Much as You Think - by M...
Commmunication in Todays world- Principles and Barriers
Learn how to prevent Workplace Incidents?
Top 10 Visionary Entrepreneurs to Watch in 2025
Chapter-7-The-Spiritual-Self-.pptx-First
Learn numerology content and join tarot reading
THEORIES-PSYCH-3.pptx theory of Abraham Maslow
Learn how to use Portable Grinders Safely
Presentation on interview preparation.pt
How to Deal with Imposter Syndrome for Personality Development?
Personal Development - By Knowing Oneself?
My 'novel' Account of Human Possibility pdf.pdf

WordPress Must-Use Plugins (Quick Overview)

  • 1. WORDPRESS MUST-USE PLUGINS by Ronald Huereca Presented at WordCamp Norway January 14th, 2012
  • 2. WHAT IS A MUST-USE PLUGIN? It’s a plugin that cannot be disabled.
  • 3. WHY USE MU-PLUGINS? • Forcritical functionality that must not be disabled (Custom Post Types, taxonomies) • For network-wide functionality in Multisite networks that even Network Admins can’t disable • Snippetsof code you can re-use independent of regular plugins and themes
  • 4. BENEFITS OF MU-PLUGINS • Cannot be disabled. Ever. Nunca. Aldri. • Cannot be edited. • Easy to drop in.
  • 5. DRAWBACKS OF MU-PLUGINS • Cannot be disabled. Ever. • Thereare no automatic updates, so the code must be maintained by you. • No activation hooks are run. • MU-Pluginsdo not have the regular folder structure as a regular WordPress plugin does. • You can bring an entire network down with one PHP error.
  • 6. wordpress WHERE TO INSTALL AN wp-content MU-PLUGIN plugins inside wp-content uploads themes
  • 7. wordpress IF THE MU- PLUGIN FOLDER wp-content DOESN’T EXIST, CREATE IT plugins mu-plugins
  • 8. ADD A .PHP FILE mu-plugins AND HAVE SOME FUN run-me-always.php
  • 9. INSIDE AN MU-PLUGIN <?php //Uhm, just place some code here. ?>
  • 10. YOU COULD GO A LITTLE MORE COMPLICATED <?php /* Plugin Name: Metronet Tasks Plugin URI: http://www.metronet.no Description: A task manager for WordPress Author: Metronet Version: 1.0 Requires at least: 3.3 Author URI: http://www.metronet.no */ require_once( 'metronet_tasks/metronet_tasks.php' ); ?>
  • 11. THE LAST mu-plugins EXAMPLE ASSUMES A run-me-always.php DIRECTORY metronet_tasks STRUCTURE LIKE THIS: metronet_tasks.php
  • 12. WHAT I’VE USED MU-PLUGINS FOR • Initializing Custom Post Types and taxonomies • Handling redirects • Removing admin menus • Removing dashboard widgets • Disabling the admin-bar on the front-end for all users
  • 13. ALL OF THESE PLUGINS CAN BE WRITTEN AS REGULAR PLUGINS...
  • 14. ...BUT IF THE FUNCTIONALITY IS CRITICAL TO THE PROJECT, DON’T EVEN ALLOW THE OPTION TO DISABLE.
  • 15. FURTHER READING • http://codex.wordpress.org/Must_Use_Plugins • http://wpmututorials.com/basics/what-is-the-mu-plugins-folder/
  • 16. Ronald Huereca Twitter: @ronalfy Facebook: http://www.facebook.com/ronalfy Skype: ronalfy Slideshare: http://slideshare.net/ronalfy http://www.wpajax.com (WordPress and Ajax - free e-book) http://www.ronalfy.com (Personal website - rants and musings )

Editor's Notes