Multisite Default Options

Home Forums Calendar Products Events Calendar PRO Multisite Default Options

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1195953
    uwsawebteam
    Participant

    Hello,

    We have a multisite instance and I noticed recently that the option that gets set when we create a new site for the “Events Template” on the display tab is no longer what we want. We need it to be “Default Events Template”, but it’s getting set as “Default Page Template.”

    We can manually go and update that setting, but it is another thing we have to remember. We already have a custom action running on wpmu_new_blog, and I’m hoping we can add a line or two of code to that to set this option then, but I’ve been having trouble figuring out the right way to programmatically set it.

    Any advice?
    Thank you,
    Rachel

    #1196485
    Brook
    Participant

    Howdy Rachel,

    I would love to help you with this.

    The wp_options table for the site has a row in it with the key tribe_events_calendar_options and inside of this you will find all options for the calendar, including the one you are looking for here. You will notice that this contains a serlialized array. You could either copy this array from a working install after setting up everything how you like. Or you could unserialize it and modify as needed, then reserialized.

    Does that all make sense?

    Cheers!

    – Brook

    #1196714
    uwsawebteam
    Participant

    Thanks, Brook!

    #1199231
    Brook
    Participant

    You are very welcome! Thanks for getting back.

    – Brook

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Multisite Default Options’ is closed to new replies.