• Resolved nomad1108

    (@nomad1108)


    Hello,

    I’m working on a Python program that add English and Spanish posts directly to the WP database. Since I’m using Polylang to link translated posts together I noticed that the array a:2:{s:2:”en”;i:1500;s:2:”es”;i:1501;} added to the wp_term_taxonomy taxonomy only works if it’s associated to an entry in the wp_terms table via the term_id column.

    This entry has a unique value, e.g. pll_6405fcca07762 for both name and slug columns. I’m wondering what the purpose of these values is, and since I’m not using the Polylang API, if it’s possible to generate my own ID here (I assume it just need to be unique)?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chouby

    (@chouby)

    Hello,
    These are translation groups from the taxononomies ‘post_translations’ and ‘term_translations’. They are linked to posts or terms in the ‘term_relationships’ table.

    The description is a serialized array which doubles the information for the relationships (they act as a cache to avoid DB queries).
    The entries just have to be unique. They are generated with uniqid()

    Thread Starter nomad1108

    (@nomad1108)

    Cool, thanks for the quick reply!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘What are pll_6405fc… entries in wp_terms used for?’ is closed to new replies.