WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Term Group Column? (3 posts)

  1. Rebecca Schaefer
    Member
    Posted 6 years ago #

    In the terms table, there's a column called "term_group". Anyone have any idea what this is natively used for?

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    From the interface side of things, it's not used for anything at all.

    However, internally, it's possible to create terms that are aliases of other terms. These terms will then be in the same term group, showing that they're really the same term.

    There is no real use for it at this point. It's there for potential future functionality and for plugins.

    If you are a plugin programmer and know how WP works, then you can add an alias_of parameter to the call to wp_insert_term(). The alias_of specifies the slug of the term that the new term you're inserting will be an alias of (and so which will share a term_group). Same parameter works on wp_update_term() too.

  3. Rebecca Schaefer
    Member
    Posted 6 years ago #

    OK, thanks. I went wading through the source over the last few days, but couldn't find any reference for it.

Topic Closed

This topic has been closed to new replies.

About this Topic