[wp-hackers] Filtering Themes visible for a particular network

Shelby, Harper harper.shelby at parivedasolutions.com
Tue Jul 20 21:59:14 UTC 2010


I've been asked to implement theme filtering for a multi-network installation, so that network admins only see those themes which "belong" to them. In the existing installation (on MU 2.9.2), this was done by altering wpmu-themes to check for a Tags value in the theme's CSS file and filtering based on that. I'm trying to move this implementation into a plugin to reduce changes to the core code. Digging into the code, I don't see any action or filter hooks being called in ms-themes.php, so I suspect my best course of action is to move themes into network-specific subdirectories of wp-content/themes, then alter the include path in an admin_init hook to bring in the proper theme directory. Is there a better way to implement this, or are there any potential risks that I haven't seen in this course of action?

Thanks,

Harper Shelby



The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.


More information about the wp-hackers mailing list