• charl0s

    (@charl0s)


    Hi. Where the plugin storage the data? Does this plugin creates new tables, or add new rows in <prefix>pots table?

    I have an issue, I have a data (an image) that is not updating. But if I deactive the plugin, the new image is shown

    Thanks!!!

    https://ww.wp.xz.cn/plugins/polylang/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter charl0s

    (@charl0s)

    Hi everyone. I think this is a simple question for people who has time working with wordpress and this plugin. Please, I need find where is the data that manipulate this plugin to try to solve the problem I have, thanks

    Greetings

    Passer

    (@passer)

    In table wp_term_taxonomy with taxonomy=language is stored information about every language, added with plugin polylang.

    And in table wp_term_relationships object_id is your post/page id from table wp_posts and term_taxonomy_id is id of your language.

    So if you want to get all posts for defined language, you can do it with query:

    SELECT p.* FROM wp_posts p INNER JOIN wp_term_relationships r ON r.object_id=p.ID WHERE r.term_taxonomy_id=language_id

    where language_id is id of language you needed.

    Images also stored on wp_posts table with post_type=attachment, so you can manipulate these too.

    I just looked at tables in database, not at code, so I could be wrong with some details.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘polylang table/data structure’ is closed to new replies.