Chief Alchemist - Business Consulting For The 21st Century Via A Holistic & Intelligent Approach
Share ChiefAlchemist.com. RSS 2.0 feed for ChiefAlchemist.com. Sign up for the mailing list. Follow Chief Alchemist on Twitter. 'Like' the Chief Alchemist's page on Facebook. See what Chief Alchemist has been Q&A'ing on Quora. Chief Alchemist bookmarks & highlights on Diigo.com. Follow the Chief Alchemist on Digg.com. Chief Alchemist channel on Last.fm. Chief Alchemist on Flickr. Mark 'Chief Alchemist' Simchock on LinkedIn. Free Initial Consultation. Email Chief Alchemist. Phone Chief Alchemist.
  • Mark ‘Chief Alchemist’ Simchock
  • 'Email me.Email => ca .at. ChiefAlchemist .dot. com
  • 'Phone me.Alchemy United => 732 997-0028
  •  
  • Free initial consultation.Free => Initial Consultation
  • Please be sure to subscribe to your communication channels of choice.
  • Click To Close => The small green (consultation), red (email) or blue (phone) icons in the top upper right.
CURRENT “TOP 10” TOPICS TOOLS CLIENTS & PROJECTS SOURCES SEARCH HIDE
Business Consulting For The 21st Century Via A Holistic & Intelligent Approach

WordPress option: active_plugins vs WP multisite: active_sitewide_plugins

FYI => I was pulling an error with a plugin I developed and ended up trolling around the bowels of WordPress, specifically WordPress multisite.

WordPress single-site has a site get_option ‘active_plugins’. For WP multisite it’s get_site_option ‘active_sitewide_plugins’. The issue is, single-site uses an array with numbers—representing plugin load order—as they key. Like this:

[0] => hello-dolly/hello.php

On the other hand, WP multisite uses an associative array with the plugin name as the key and some integer as the value. Like this:

[hello-dolly/hello.php] => 1369572703

The broader issue was to manipulate the load order of the plugins. Once I understood the array types were different I added an is_mutisite() conditional and manipulated the arrays appropriately. When I find out why the array types are different I’ll let you know.

Next problem: Figure out why WordPress multisite doesn’t seem to like PHP slp autoload.

Required.
Will not be published. Required.
Please include http://