Title: How to create Yoast Databases programatically?
Last modified: September 30, 2022

---

# How to create Yoast Databases programatically?

 *  Resolved [Dealer Solutions](https://wordpress.org/support/users/dealersolutions/)
 * (@dealersolutions)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/how-to-create-yoast-databases-programatically/)
 * Hello, I am creating new multisite blogs programmatically via the function wpmu_create_blog()(
   Yoast 19.7.1, WordPress 6.0.1)
 * Part of my process involves a call to update_option(‘page_on_front’,$id) which
   at the time of execution, the yoast tables have yet to be created, and this fails
   due to yoast having a hook on “update_option_page_on_front” and the tables not
   existing.
 * How can I programmatically trigger the creation of the tables? the standard call
   of “wp_initialize_site” does not trigger yoast to create the tables which is 
   actioned from within wp_insert_site()
 * the yoast tables do generate the first time I access this blog, but I want them
   created before that ideally
 * edit: my current work around “hack” is to suppress “update_option_page_on_front”
   hook whilst I execute my update_options() call
 * With thanks
    -  This topic was modified 3 years, 6 months ago by [Dealer Solutions](https://wordpress.org/support/users/dealersolutions/).
      Reason: Adding a note about my current workaround

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

 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/how-to-create-yoast-databases-programatically/#post-16068119)
 * Hello [@dealersolutions](https://wordpress.org/support/users/dealersolutions/)
 * Thanks for reaching out. The Yoast SEO plugin creates the essential database 
   tables during the plugin activation hooks. Unfortunately, we don’t offer such
   a deep level of technical support. However, you can look at the plugin code in
   [GitHub repository](https://github.com/Yoast/wordpress-seo) to see our code base
   and find out more.
 *  Thread Starter [Dealer Solutions](https://wordpress.org/support/users/dealersolutions/)
 * (@dealersolutions)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/how-to-create-yoast-databases-programatically/#post-16069910)
 * Thank you,
 * I don’t think yoast should be trying to update data via that hook if the tables
   don’t exist yet then.
    -  This reply was modified 3 years, 6 months ago by [Dealer Solutions](https://wordpress.org/support/users/dealersolutions/).

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

The topic ‘How to create Yoast Databases programatically?’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Dealer Solutions](https://wordpress.org/support/users/dealersolutions/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/how-to-create-yoast-databases-programatically/#post-16069910)
 * Status: resolved