Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I don’t believe so in regards to the data saved to the metaboxes. I know the code used to generate the metaboxes are all in your php files which are readily portable.

    All of the values are stored in the post/user meta tables, and possibly the options table depending on where you’re creating metaboxes for, for what it’s worth. They’re frequently stored as serialized data, so be wary if you’re having to change things inside the saved values, like urls for a site transfer.

    Thread Starter ramblurr

    (@ramblurr)

    I’m asking because I’m creating an interface with CMB2 for users to manage a bunch of data in their WP backend.

    Part of launching the new interface is migrating the data from the existing source, CSV.

    Can you point me to the API functions I can use to write data into the fields I’ve created with CMB2?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Been looking through the codebase as well as GitHub, and I’m not seeing anything dedicated to exporting/importing the data between websites/databases.

    As long as you’re not changing the keys used per field you create, exporting a DB table to a csv, and then importing/parsing back in on the new server should retain all the necessary parts to pick up where you left off. It may get a little messy if your csv is using commas for the delimeter, and one of the field types has some string text that has a commas well, so there are caveats to keep in mind for that aspect.

    Trying to provide the best foot forward I can, with the limited available import/export ability there is.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Export / Import’ is closed to new replies.