Title: [Plugin: WP-Table Reloaded] Automating table import
Last modified: August 20, 2016

---

# [Plugin: WP-Table Reloaded] Automating table import

 *  Resolved [ltcommander](https://wordpress.org/support/users/ltcommander/)
 * (@ltcommander)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-automating-table-import/)
 * Hi,
 * I use a Perl script to post to WordPress. I really want to use WP-Table-Reloaded
   but I wonder if it’s possible to import a HTML table into the database and get
   the table ID using a function.
 * By that I mean:
 * sub GetTableShortCode{
    my ($html)=@_; … return $tableShortCode; }
 * sub main{
    my $html = # this contains the entire table my $Shortcode=GetTableShortCode(“
   $html”); }
 * and then I post something using the table short code..
 * Can I use wp-table-reloaded programatically?
 * [http://wordpress.org/extend/plugins/wp-table-reloaded/](http://wordpress.org/extend/plugins/wp-table-reloaded/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-automating-table-import/#post-2826760)
 * Hi,
 * that is definitely an interesting use case!
 * Unfortunately, I have to disappoint you: WP-Table Reloaded does not offer an 
   API like this, which could be used for accessing the plugins via other means.
   Sorry.
 * Best wishes,
    Tobias
 *  Thread Starter [ltcommander](https://wordpress.org/support/users/ltcommander/)
 * (@ltcommander)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-automating-table-import/#post-2826903)
 * Thanks Tobias.
 * Hmm.. I really want to use it that way. What if I write to the wp-options table
   directly? Would that work?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-automating-table-import/#post-2826919)
 * Hi,
 * you can of course try to manually write to `wp_options` directly, just be extra
   careful 🙂 You might want to take a look at the WP-Table Reloaded source code
   to see how the data format is structured.
 * Regards,
    Tobias
 *  Thread Starter [ltcommander](https://wordpress.org/support/users/ltcommander/)
 * (@ltcommander)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-automating-table-import/#post-2826920)
 * ah okay! Thank you Tobias!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-automating-table-import/#post-2826921)
 * Hi,
 * sure, no problem, you are very welcome!
 * Best wishes,
    Tobias

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

The topic ‘[Plugin: WP-Table Reloaded] Automating table import’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-table-reloaded_f7dcd3.svg)
 * [WP-Table Reloaded](https://wordpress.org/plugins/wp-table-reloaded/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-table-reloaded/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-table-reloaded/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-table-reloaded/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-table-reloaded/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-table-reloaded/reviews/)

## Tags

 * [program](https://wordpress.org/support/topic-tag/program/)
 * [script](https://wordpress.org/support/topic-tag/script/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-automating-table-import/#post-2826921)
 * Status: resolved