Chief Alchemist - Business Consulting For The 21st Century Via A Holistic & Intelligent Approach
Share RSS 2.0 feed for 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 Follow the Chief Alchemist on Chief Alchemist channel on 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.
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.

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