Title: Setting configuration automatically for Multisite
Last modified: September 4, 2023

---

# Setting configuration automatically for Multisite

 *  Resolved [wagnerlaranjeiras](https://wordpress.org/support/users/wagnerlaranjeiras/)
 * (@wagnerlaranjeiras)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/setting-configuration-automatically-for-multisite/)
 * 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!
    -  This topic was modified 2 years, 9 months ago by [wagnerlaranjeiras](https://wordpress.org/support/users/wagnerlaranjeiras/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/setting-configuration-automatically-for-multisite/#post-17024764)
 * 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](https://wordpress.org/support/users/wagnerlaranjeiras/)
 * (@wagnerlaranjeiras)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/setting-configuration-automatically-for-multisite/#post-17026129)
 * 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.
    -  This reply was modified 2 years, 9 months ago by [wagnerlaranjeiras](https://wordpress.org/support/users/wagnerlaranjeiras/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Setting configuration automatically for Multisite’ is closed to new replies.

 * ![](https://ps.w.org/postie/assets/icon-256x256.png?rev=970083)
 * [Postie](https://wordpress.org/plugins/postie/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/postie/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/postie/)
 * [Active Topics](https://wordpress.org/support/plugin/postie/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/postie/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/postie/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [wagnerlaranjeiras](https://wordpress.org/support/users/wagnerlaranjeiras/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/setting-configuration-automatically-for-multisite/#post-17026129)
 * Status: resolved