WP-Table Reloaded
[resolved] Use the "export" function in a php script (2 posts)

  1. phate867
    Posted 3 years ago #

    I see that this plugin has an export function, I gave an eye to code and I came up with this:
    require_once("wp-content/plugins/wp-table- reloaded/classes/export.class.php");

    $db = new WP_Table_Reloaded_Export();
    $db->export_format = 'xml';
    $db->table_to_export['data'] = 'TableName';
    $output = $db->export_table();
    echo $output;

    it should print me the xml representation of the table..but it doesn't, can you help me out please?


  2. TobiasBg
    Plugin Author

    Posted 3 years ago #


    thanks for your post.

    I'm not really sure that this approach is a good idea. First, including WordPress into an external script like this, as this can lead to a lot of overhead. Instead, it should probably be easier to include the desired functionality into a small WordPress plugin.

    So, if you could explain shortly what you are trying to achieve, I'll gladly try to explain the best way to tackle this.

    Also note that his XML representation is rather useless outside of WP-Table Reloaded, as it is not a common XML format, but a special format.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Table Reloaded
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic