Title: manually insert by code
Last modified: August 31, 2016

---

# manually insert by code

 *  Resolved [ricksonlo](https://wordpress.org/support/users/ricksonlo/)
 * (@ricksonlo)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/manually-insert-by-code/)
 * I have like 3000ish weighted based rules to apply so the only way is to insert
   data manually into db. I am new to WP so kind of loss which tables in the db 
   should start with. Can anyone give me some breif instruction to start with? (
   which tables the data stores in?)
 * Also it seems I cannot add more than 3 rules in the gui. What is the limit number
   of records for free version?
 * [https://wordpress.org/plugins/weight-based-shipping-for-woocommerce/](https://wordpress.org/plugins/weight-based-shipping-for-woocommerce/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Dan](https://wordpress.org/support/users/dangoodman/)
 * (@dangoodman)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/manually-insert-by-code/#post-6936545)
 * Rules as stored as rows in wp_config table, with option_name starting from ‘woowbs_’.
   So you can insert new ones by a script in a way similar to how it’s done in the
   plugin.
 * There is no limit of a number of rules you can add. Could you provide more info
   on the issue preventing you from creating more than 3 rules?
 * Although, a number of rules is not limited there is a soft limit of, say, 100
   rules due to the plugin implementation details. The plugin is supposed to work
   with tens of rules or maybe with a few hundreds, but no more. I’m not sure if
   its performance would be ok for 3k rules.

Viewing 1 replies (of 1 total)

The topic ‘manually insert by code’ is closed to new replies.

 * ![](https://ps.w.org/weight-based-shipping-for-woocommerce/assets/icon-256x256.
   png?rev=2072721)
 * [Weight Based Shipping for WooCommerce](https://wordpress.org/plugins/weight-based-shipping-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/weight-based-shipping-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/weight-based-shipping-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/weight-based-shipping-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/weight-based-shipping-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Dan](https://wordpress.org/support/users/dangoodman/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/manually-insert-by-code/#post-6936545)
 * Status: resolved