Viewing 2 replies - 16 through 17 (of 17 total)
  • Hi Tobias,

    I’m building a custom Api’s in wordPress for one of my project and I need to return tablePress data as response. Could you please help me to get the data against a table id??

    I tried the solution that you provided above

    $table_id = '23';
    $table = TablePress::$model_table->load( $table_id );

    But it return an error like

    <b>Fatal error</b>: Access to undeclared static property: TablePress::$table_model

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    you might be running into the same problem as discussed above: Your code is probably running to early. You should wait with after the init hook to run it.

    Regards,
    Tobias

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘How to use tablepress data with PHP script’ is closed to new replies.