Coder Social home page Coder Social logo

Comments (5)

TobiasBg avatar TobiasBg commented on July 19, 2024

Hi @Sher-Chowdhury,

thanks for your suggestion! At this time, I don't have plans to create such a wp-cli integration. I simply don't have the time for it. I also think that this wouldn't be that useful (yet) for the majority of TablePress users.
If someone else wants to step up and develop this, I'd gladly try to assist where possible!

At least for backing up, it should be sufficient to backup the relevant entries from the wp_posts database tables (the Custom Post Type is tablepress_table) and the tablepress_tables and tablepress_options entries from the wp_options database tables.

Regards,
Tobias

from tablepress.

RhettPrichard avatar RhettPrichard commented on July 19, 2024

I was curious as to what the plugin's admin all tables tab is using to find a post of the post_type tablepress_table? I have been playing around with adding a post with the wp cli using the --post_type=tablepress_table arg, I have created a complete duplicate of a working table, and even custom edited the TablePress_tables option parameter to match, but it is not "enough" for the TablePress all tables admin tab to see it. I was wondering if there is some setting/meta/option I am missing that needs to be set to make it seen by the plugins all tables tab?
Thank you for you time.
Rhett

from tablepress.

TobiasBg avatar TobiasBg commented on July 19, 2024

Hi @RhettPrichard,

the table data is stored in wp_posts, with a post_type value of tablepress_table. In addition, the meta data is in wp_postmeta. Then, the post ID is mapped to a table ID in the tablepress_tables option in the wp_options DB table, which is where the "All Tables" screen gets its list from.

Regards,
Tobias

from tablepress.

RhettPrichard avatar RhettPrichard commented on July 19, 2024

Thank you

from tablepress.

hadamlenz avatar hadamlenz commented on July 19, 2024

A possible idea for wp-cli support would be to change options for many tables all at once

if you wanted to change a handfull of tables to show "The background colors of consecutive rows shall alternate"

wp tablepress options option=alternate tables=1,2,3

from tablepress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.