WordPress.org

Forums

[resolved] update_metadata('term', $object_id, $meta_key, $meta_value) (4 posts)

  1. Jack Reichert
    Member
    Posted 1 year ago #

    I noticed that the database has a table named wp_termmeta. I wanted to use it. But when I tried update_metadata('term', $object_id, $meta_key, $meta_value) it returned false. I believe it's failing on line 880 of /wp-includes/meta.php in the function _get_meta_table, i.e. it's not in $wpdb.

    Is termmeta to be included in a future wp release? Is active now? If yes, how do I use it?

    Thanks in advance.

  2. Jack Reichert
    Member
    Posted 1 year ago #

    So it doesn't look like it's active yet.

    When I updated wp-includes/wp-db.php line 209 to include 'termmeta' the function worked.

    Should I add a ticket and patch?

  3. Jack Reichert
    Member
    Posted 1 year ago #

  4. Jack Reichert
    Member
    Posted 1 year ago #

    It looks like the wp_termmeta table I was looking at was added by a plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic