• Resolved wagnerlaranjeiras

    (@wagnerlaranjeiras)


    Hi Wayne! First of all, thank you for your work! This plugin is awesome.

    I’m a junior dev, and I’m trying to work on a functionality to set the configuration for a new page automatically, right after it has been created. I tried using the “wp_initialize_site” alongside with “global $wpdb” to change things directly on the database, but I was wondering if you would suggest a better way of doing it.

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    Interesting feature, first time I’ve heard of anyone doing this.
    Any reason you’re not using the WordPress api rather than direct db updates?

    Thread Starter wagnerlaranjeiras

    (@wagnerlaranjeiras)

    That was some fast response. I’m glad the idea seems innovative! I’m still learning my way around WordPress, so in my first approach I tried using the “pre_option_postie-settings” hook to filter the configurations, but I couldn’t make it work. Altering directly the DB was my second idea, but I’m not sure if it’s a best practice. I also can’t say that it’s really working right now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Setting configuration automatically for Multisite’ is closed to new replies.