WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #37686, comment 2


Ignore:
Timestamp:
08/17/2016 11:33:14 AM (4 years ago)
Author:
dd32
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37686, comment 2

    v1 v2  
    11> This means that a taxonomy term ID cannot be used for both post ID's and user ID's, as there is no way to know if an object_id is for a post ID or a user ID.
    22
    3 Just to clarify on this, currently we tie taxonomies to an `$object_type` which although is normally thought of as `post_type`  nothing prevents you from using `'user'` as the object type. What you cannot do however, is have `$object_type` be an array of multiple differently indexed types (so not `[ 'user', 'post' ]`, or `[ 'user', 'option' ]`).
     3Just to clarify on this, currently we tie taxonomies to an `$object_type` which although is normally thought of as `post_type`  nothing prevents you from using `'user'` as the object type. What you cannot do however, is have `$object_type` be an array of multiple differently indexed types (so no `[ 'user', 'post' ]`, or `[ 'user', 'option' ]`).
    44
    55> This means that a taxonomy term ID cannot be used for both post ID's and user ID's, as there is no way to know if an object_id is for a post ID or a user ID.