Support » Plugin: WP-Table Reloaded » Use the "export" function in a php script

  • Resolved phate867


    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?

Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg



    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.


Viewing 1 replies (of 1 total)
  • The topic ‘Use the "export" function in a php script’ is closed to new replies.