• Resolved Jack Reichert

    (@jackreichert)


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Jack Reichert

    (@jackreichert)

    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?

    Thread Starter Jack Reichert

    (@jackreichert)

    Thread Starter Jack Reichert

    (@jackreichert)

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘update_metadata('term', $object_id, $meta_key, $meta_value)’ is closed to new replies.