SlideShare una empresa de Scribd logo
1 de 16
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 )

Más contenido relacionado

La actualidad más candente

10 things Not To Do With WordPress
10 things Not To Do With WordPress10 things Not To Do With WordPress
10 things Not To Do With WordPressRicky Blacker
 
WordCamp Birmingham 2015 - Theme building tricks of the trade
WordCamp Birmingham 2015 - Theme building tricks of the tradeWordCamp Birmingham 2015 - Theme building tricks of the trade
WordCamp Birmingham 2015 - Theme building tricks of the tradeJonny Allbut
 
WordCamp Sheffield 2014 Theme Workflow Presentation
WordCamp Sheffield 2014 Theme Workflow PresentationWordCamp Sheffield 2014 Theme Workflow Presentation
WordCamp Sheffield 2014 Theme Workflow PresentationJonny Allbut
 
Rapid WordPress theme development
Rapid WordPress theme developmentRapid WordPress theme development
Rapid WordPress theme developmentJonny Allbut
 
Build WordPress themes like a heavyweight - WordCamp Lancaster 2013
Build WordPress themes like a heavyweight - WordCamp Lancaster 2013Build WordPress themes like a heavyweight - WordCamp Lancaster 2013
Build WordPress themes like a heavyweight - WordCamp Lancaster 2013Jonny Allbut
 
WordCamp Bournemouth 2014 - Designing with data in WordPress
WordCamp Bournemouth 2014 - Designing with data in WordPressWordCamp Bournemouth 2014 - Designing with data in WordPress
WordCamp Bournemouth 2014 - Designing with data in WordPressJonny Allbut
 
10 Things Not To Do With WordPress
10 Things Not To Do With WordPress10 Things Not To Do With WordPress
10 Things Not To Do With WordPressWordPress Sydney
 
WordCamp Birmingham 2015 - Theme building workshop
WordCamp Birmingham 2015 - Theme building workshopWordCamp Birmingham 2015 - Theme building workshop
WordCamp Birmingham 2015 - Theme building workshopJonny Allbut
 
Building your first WordPress plugin
Building your first WordPress pluginBuilding your first WordPress plugin
Building your first WordPress pluginJustin Foell
 
Develop and Deploy Outside the Repo
Develop and Deploy Outside the RepoDevelop and Deploy Outside the Repo
Develop and Deploy Outside the Repoafragen
 
Nürnberg WooCommerce Talk - 11/24/16
Nürnberg WooCommerce Talk - 11/24/16Nürnberg WooCommerce Talk - 11/24/16
Nürnberg WooCommerce Talk - 11/24/16tshellberg
 
Cross CMS plugin development using AWF
Cross CMS plugin development using AWFCross CMS plugin development using AWF
Cross CMS plugin development using AWFTim Plummer
 
The Future of-the CMS (Twin Cities DrupalCamp 2015)
The Future of-the CMS (Twin Cities DrupalCamp 2015)The Future of-the CMS (Twin Cities DrupalCamp 2015)
The Future of-the CMS (Twin Cities DrupalCamp 2015)Todd Ross Nienkerk
 
Building SaaS with WordPress - WordCamp Netherlands 2016
Building SaaS with WordPress - WordCamp Netherlands 2016Building SaaS with WordPress - WordCamp Netherlands 2016
Building SaaS with WordPress - WordCamp Netherlands 2016Mario Peshev
 
Intro to WordPress Plugins
Intro to WordPress PluginsIntro to WordPress Plugins
Intro to WordPress PluginsKristen Symonds
 
2015 contens präsentation_hunting_bugs
2015 contens präsentation_hunting_bugs2015 contens präsentation_hunting_bugs
2015 contens präsentation_hunting_bugsCONTENS Software GmbH
 
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...Andrea Cardinali
 
WordPress plugin development
WordPress plugin developmentWordPress plugin development
WordPress plugin developmentarryaas
 
Coding with jetpack
Coding with jetpackCoding with jetpack
Coding with jetpackRich Collier
 
Intro to wordpress short course
Intro to wordpress short courseIntro to wordpress short course
Intro to wordpress short coursecarishurd
 

La actualidad más candente (20)

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

Destacado

WordPress Plugin Localization
WordPress Plugin LocalizationWordPress Plugin Localization
WordPress Plugin LocalizationRonald Huereca
 
Selection policy evaluation
Selection policy evaluationSelection policy evaluation
Selection policy evaluationLaurie Roberts
 
Budget simulation assignment
Budget simulation assignmentBudget simulation assignment
Budget simulation assignmentLaurie Roberts
 
Jobvite Social Recruiting Survey Results - 2011
Jobvite Social Recruiting Survey Results - 2011Jobvite Social Recruiting Survey Results - 2011
Jobvite Social Recruiting Survey Results - 2011Steven Duque
 
How to Successfully Take Over a WordPress Plugin
How to Successfully Take Over a WordPress PluginHow to Successfully Take Over a WordPress Plugin
How to Successfully Take Over a WordPress PluginRonald Huereca
 
WordPress Multisite General Overview
WordPress Multisite General OverviewWordPress Multisite General Overview
WordPress Multisite General OverviewRonald Huereca
 
The Wikification of blackboard
The Wikification of blackboard The Wikification of blackboard
The Wikification of blackboard Stevemac121
 
What Is A Wiki
What Is A WikiWhat Is A Wiki
What Is A Wikikwilfert
 
Las wikis
Las wikisLas wikis
Las wikistaloxa
 
How to create an educational wiki with sound
How to create an educational wiki with soundHow to create an educational wiki with sound
How to create an educational wiki with soundLaurie Roberts
 

Destacado (14)

WordPress Plugin Localization
WordPress Plugin LocalizationWordPress Plugin Localization
WordPress Plugin Localization
 
Selection policy evaluation
Selection policy evaluationSelection policy evaluation
Selection policy evaluation
 
Budget simulation assignment
Budget simulation assignmentBudget simulation assignment
Budget simulation assignment
 
Jobvite Social Recruiting Survey Results - 2011
Jobvite Social Recruiting Survey Results - 2011Jobvite Social Recruiting Survey Results - 2011
Jobvite Social Recruiting Survey Results - 2011
 
How to Successfully Take Over a WordPress Plugin
How to Successfully Take Over a WordPress PluginHow to Successfully Take Over a WordPress Plugin
How to Successfully Take Over a WordPress Plugin
 
WordPress and Ajax
WordPress and AjaxWordPress and Ajax
WordPress and Ajax
 
Kindle grant
Kindle grantKindle grant
Kindle grant
 
WordPress Multisite General Overview
WordPress Multisite General OverviewWordPress Multisite General Overview
WordPress Multisite General Overview
 
The Wikification of blackboard
The Wikification of blackboard The Wikification of blackboard
The Wikification of blackboard
 
Wikis powerpoint
Wikis powerpointWikis powerpoint
Wikis powerpoint
 
What Is A Wiki
What Is A WikiWhat Is A Wiki
What Is A Wiki
 
Las wikis
Las wikisLas wikis
Las wikis
 
Wikis powerpoint
Wikis powerpointWikis powerpoint
Wikis powerpoint
 
How to create an educational wiki with sound
How to create an educational wiki with soundHow to create an educational wiki with sound
How to create an educational wiki with sound
 

Similar a WordPress Must-Use Plugins (Quick Overview)

WordCamp Atlanta Presentation
WordCamp Atlanta PresentationWordCamp Atlanta Presentation
WordCamp Atlanta PresentationThomas Griffin
 
Creating Your First WordPress Plugin
Creating Your First WordPress PluginCreating Your First WordPress Plugin
Creating Your First WordPress PluginBrad Williams
 
A few ideas how to integrate Wwise Authoring API (WAAPI) in your project work...
A few ideas how to integrate Wwise Authoring API (WAAPI) in your project work...A few ideas how to integrate Wwise Authoring API (WAAPI) in your project work...
A few ideas how to integrate Wwise Authoring API (WAAPI) in your project work...DevGAMM Conference
 
WordPress Multisite deck
WordPress Multisite deckWordPress Multisite deck
WordPress Multisite deckbelsien
 
Making the Most of Plug-ins - WordCamp Toronto 2008
Making the Most of Plug-ins - WordCamp Toronto 2008Making the Most of Plug-ins - WordCamp Toronto 2008
Making the Most of Plug-ins - WordCamp Toronto 2008Brendan Sera-Shriar
 
WordCamp Belfast DevOps for Beginners
WordCamp Belfast DevOps for BeginnersWordCamp Belfast DevOps for Beginners
WordCamp Belfast DevOps for BeginnersStewart Ritchie
 
Building your first plugin
Building your first pluginBuilding your first plugin
Building your first pluginScott DeLuzio
 
5 年後還是新手 - WordPress Plugin 開發大冒險 - GOTY
5 年後還是新手 - WordPress Plugin 開發大冒險 - GOTY5 年後還是新手 - WordPress Plugin 開發大冒險 - GOTY
5 年後還是新手 - WordPress Plugin 開發大冒險 - GOTYWilliam Chong
 
Plugin Development Practices
Plugin Development PracticesPlugin Development Practices
Plugin Development Practicesdanpastori
 
Intro to WordPress Plugin Development
Intro to WordPress Plugin DevelopmentIntro to WordPress Plugin Development
Intro to WordPress Plugin DevelopmentBrad Williams
 
Magento 2 Dependency Injection, Interceptors, and You - php[world] 2015
Magento 2 Dependency Injection, Interceptors, and You - php[world] 2015Magento 2 Dependency Injection, Interceptors, and You - php[world] 2015
Magento 2 Dependency Injection, Interceptors, and You - php[world] 2015Joshua Warren
 
Introduction to WordPress Multisite
Introduction to WordPress MultisiteIntroduction to WordPress Multisite
Introduction to WordPress MultisiteCraig Taylor
 
Wordpress #2 : customisation
Wordpress #2 : customisationWordpress #2 : customisation
Wordpress #2 : customisationJean Michel
 
WordPress Plugin Development For Beginners
WordPress Plugin Development For BeginnersWordPress Plugin Development For Beginners
WordPress Plugin Development For Beginnersjohnpbloch
 
From WordPress With Love
From WordPress With LoveFrom WordPress With Love
From WordPress With LoveUp2 Technology
 
Introduction To Drupal
Introduction To DrupalIntroduction To Drupal
Introduction To DrupalLauren Roth
 
WordPress Plugin Development 201
WordPress Plugin Development 201WordPress Plugin Development 201
WordPress Plugin Development 201ylefebvre
 
Using Featured Images with WordPress
Using Featured Images with WordPressUsing Featured Images with WordPress
Using Featured Images with WordPressSara Rosso
 

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

WordCamp Atlanta Presentation
WordCamp Atlanta PresentationWordCamp Atlanta Presentation
WordCamp Atlanta Presentation
 
Creating Your First WordPress Plugin
Creating Your First WordPress PluginCreating Your First WordPress Plugin
Creating Your First WordPress Plugin
 
A few ideas how to integrate Wwise Authoring API (WAAPI) in your project work...
A few ideas how to integrate Wwise Authoring API (WAAPI) in your project work...A few ideas how to integrate Wwise Authoring API (WAAPI) in your project work...
A few ideas how to integrate Wwise Authoring API (WAAPI) in your project work...
 
WordPress Multisite deck
WordPress Multisite deckWordPress Multisite deck
WordPress Multisite deck
 
Making the Most of Plug-ins - WordCamp Toronto 2008
Making the Most of Plug-ins - WordCamp Toronto 2008Making the Most of Plug-ins - WordCamp Toronto 2008
Making the Most of Plug-ins - WordCamp Toronto 2008
 
WordCamp Belfast DevOps for Beginners
WordCamp Belfast DevOps for BeginnersWordCamp Belfast DevOps for Beginners
WordCamp Belfast DevOps for Beginners
 
Building your first plugin
Building your first pluginBuilding your first plugin
Building your first plugin
 
5 年後還是新手 - WordPress Plugin 開發大冒險 - GOTY
5 年後還是新手 - WordPress Plugin 開發大冒險 - GOTY5 年後還是新手 - WordPress Plugin 開發大冒險 - GOTY
5 年後還是新手 - WordPress Plugin 開發大冒險 - GOTY
 
Plugin Development Practices
Plugin Development PracticesPlugin Development Practices
Plugin Development Practices
 
Intro to WordPress Plugin Development
Intro to WordPress Plugin DevelopmentIntro to WordPress Plugin Development
Intro to WordPress Plugin Development
 
Magento 2 Dependency Injection, Interceptors, and You - php[world] 2015
Magento 2 Dependency Injection, Interceptors, and You - php[world] 2015Magento 2 Dependency Injection, Interceptors, and You - php[world] 2015
Magento 2 Dependency Injection, Interceptors, and You - php[world] 2015
 
1. MySql plugins
1. MySql plugins1. MySql plugins
1. MySql plugins
 
Introduction to WordPress Multisite
Introduction to WordPress MultisiteIntroduction to WordPress Multisite
Introduction to WordPress Multisite
 
Wordpress #2 : customisation
Wordpress #2 : customisationWordpress #2 : customisation
Wordpress #2 : customisation
 
WordPress Plugin Development For Beginners
WordPress Plugin Development For BeginnersWordPress Plugin Development For Beginners
WordPress Plugin Development For Beginners
 
From WordPress With Love
From WordPress With LoveFrom WordPress With Love
From WordPress With Love
 
Introduction To Drupal
Introduction To DrupalIntroduction To Drupal
Introduction To Drupal
 
Faster WordPress Workflows
Faster WordPress WorkflowsFaster WordPress Workflows
Faster WordPress Workflows
 
WordPress Plugin Development 201
WordPress Plugin Development 201WordPress Plugin Development 201
WordPress Plugin Development 201
 
Using Featured Images with WordPress
Using Featured Images with WordPressUsing Featured Images with WordPress
Using Featured Images with WordPress
 

Último

Spiritual Life Quote from Shiva Negi
Spiritual Life Quote from Shiva Negi Spiritual Life Quote from Shiva Negi
Spiritual Life Quote from Shiva Negi OneDay18
 
南新罕布什尔大学毕业证学位证成绩单-学历认证
南新罕布什尔大学毕业证学位证成绩单-学历认证南新罕布什尔大学毕业证学位证成绩单-学历认证
南新罕布什尔大学毕业证学位证成绩单-学历认证kbdhl05e
 
(南达科他州立大学毕业证学位证成绩单-永久存档)
(南达科他州立大学毕业证学位证成绩单-永久存档)(南达科他州立大学毕业证学位证成绩单-永久存档)
(南达科他州立大学毕业证学位证成绩单-永久存档)oannq
 
Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?
Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?
Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?Mikko Kangassalo
 
Authentic No 1 Amil Baba In Pakistan Amil Baba In Faisalabad Amil Baba In Kar...
Authentic No 1 Amil Baba In Pakistan Amil Baba In Faisalabad Amil Baba In Kar...Authentic No 1 Amil Baba In Pakistan Amil Baba In Faisalabad Amil Baba In Kar...
Authentic No 1 Amil Baba In Pakistan Amil Baba In Faisalabad Amil Baba In Kar...Authentic No 1 Amil Baba In Pakistan
 
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...JeylaisaManabat1
 
Inspiring Through Words Power of Inspiration.pptx
Inspiring Through Words Power of Inspiration.pptxInspiring Through Words Power of Inspiration.pptx
Inspiring Through Words Power of Inspiration.pptxShubham Rawat
 
integrity in personal relationship (1).pdf
integrity in personal relationship (1).pdfintegrity in personal relationship (1).pdf
integrity in personal relationship (1).pdfAmitRout25
 

Último (8)

Spiritual Life Quote from Shiva Negi
Spiritual Life Quote from Shiva Negi Spiritual Life Quote from Shiva Negi
Spiritual Life Quote from Shiva Negi
 
南新罕布什尔大学毕业证学位证成绩单-学历认证
南新罕布什尔大学毕业证学位证成绩单-学历认证南新罕布什尔大学毕业证学位证成绩单-学历认证
南新罕布什尔大学毕业证学位证成绩单-学历认证
 
(南达科他州立大学毕业证学位证成绩单-永久存档)
(南达科他州立大学毕业证学位证成绩单-永久存档)(南达科他州立大学毕业证学位证成绩单-永久存档)
(南达科他州立大学毕业证学位证成绩单-永久存档)
 
Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?
Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?
Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?
 
Authentic No 1 Amil Baba In Pakistan Amil Baba In Faisalabad Amil Baba In Kar...
Authentic No 1 Amil Baba In Pakistan Amil Baba In Faisalabad Amil Baba In Kar...Authentic No 1 Amil Baba In Pakistan Amil Baba In Faisalabad Amil Baba In Kar...
Authentic No 1 Amil Baba In Pakistan Amil Baba In Faisalabad Amil Baba In Kar...
 
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
 
Inspiring Through Words Power of Inspiration.pptx
Inspiring Through Words Power of Inspiration.pptxInspiring Through Words Power of Inspiration.pptx
Inspiring Through Words Power of Inspiration.pptx
 
integrity in personal relationship (1).pdf
integrity in personal relationship (1).pdfintegrity in personal relationship (1).pdf
integrity in personal relationship (1).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 )

Notas del editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n