[wp-hackers] Shared MultiSite Menus

Jerry Milo Johnson jmiloj at gmail.com
Thu May 30 15:58:39 UTC 2013


can you add an action to the menu save, so that when you update the menu on
any of the 4 sites, you update the menu data for the others, too?

(so the switch_to_blog could happen in the admin, during save, and not on
the front-end during load)?




On Thu, May 30, 2013 at 11:50 AM, Dobri <dyordan1 at ramapo.edu> wrote:

> Otto's right, I forgot you could do site-wide options. That's probably the
> best place. Awkward, I know, but there's no harm in doing it.
>
> Here's another idea: if it's just a shared menu(not 4 separate ones that
> you  glue together) why not sync it up? Every time a menu is saved on one
> of the four sites, replicate the same menu on the other three. You'll only
> be doing this on menu save so it's not as heavy as doing it every page load.
>
> ~Dobri
>
> On Thu, 30 May 2013, at 11:43 AM, Otto wrote:
>
> > On Thu, May 30, 2013 at 10:29 AM, Dobri <dyordan1 at ramapo.edu> wrote:
> >> If it's this specialized, how about on menu save from any of the four
> sites you create a raw HTML flat file and dump it on the server? Then on
> render, just pull that file in. Doesn't really scale obviously but it works
> for a very specific case like yours, right?
> >
> > Instead of a flat file, use a site-option.
> >
> > http://codex.wordpress.org/Function_Reference/update_site_option
> > http://codex.wordpress.org/Function_Reference/get_site_option
> >
> > -Otto
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list