[wp-hackers] Sharing widgets across multiple blogs

Andrew Nacin wp at andrewnacin.com
Mon Jul 12 05:13:40 UTC 2010


On Mon, Jul 12, 2010 at 12:28 AM, David Morris <dvmorris at gmail.com> wrote:

> Yes, that makes sense, but in this particular case all of the blogs share
> the same theme. It's a project I inherited, so I'm trying to be delicate
> with the changes I make. Thanks for the tip, that helps me out a lot.
>
> Dave


Another potential option is to short-circuit calls to the options table
where the widgets information is stored, using the pre_option_$option hook,
and instead store it in sitemeta. Then make sure you attach a hook to
update_option_$option on the main blog to keep the site meta in sync.


More information about the wp-hackers mailing list