Title: Adding multiple rows via hook or script
Last modified: November 26, 2025

---

# Adding multiple rows via hook or script

 *  Resolved [leggiero](https://wordpress.org/support/users/leggiero/)
 * (@leggiero)
 * [6 months ago](https://wordpress.org/support/topic/adding-multiple-rows-via-hook-or-script/)
 * I’m trying to figure out how to script the addition of multiple rows in an archival
   database project I’m working on. The input would be a year and a number of records
   to be added for that year. With this input, I’d like to add, say, 23 new rows
   for the year 2010, and then 27 for 2011, and so on. And once I get this working
   I’ll use the same technique for a few other places. Since hooks only use JQuery
   or Javascript, both front-end, they don’t seem to do this. PHP can do it, but
   I can’t figure out how to fire off a PHP script from a hook or a button. Any 
   help is appreciated!

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Kim L](https://wordpress.org/support/users/kimmyx/)
 * (@kimmyx)
 * [6 months ago](https://wordpress.org/support/topic/adding-multiple-rows-via-hook-or-script/#post-18734091)
 * Hi [@leggiero](https://wordpress.org/support/users/leggiero/),
 * We have a built-in feature to call a PHP function from a JavaScript hook or computed
   field, but it’s available for premium users only.
 * Please send us a message via [Contact | WP Data Access](https://wpdataaccess.com/contact/)
   to know more about this feature. 🙏
 * We’ll wait for your email!

Viewing 1 replies (of 1 total)

The topic ‘Adding multiple rows via hook or script’ is closed to new replies.

 * ![](https://ps.w.org/wp-data-access/assets/icon-256x256.png?rev=3299063)
 * [WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards](https://wordpress.org/plugins/wp-data-access/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-data-access/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-data-access/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-data-access/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-data-access/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kim L](https://wordpress.org/support/users/kimmyx/)
 * Last activity: [6 months ago](https://wordpress.org/support/topic/adding-multiple-rows-via-hook-or-script/#post-18734091)
 * Status: resolved