A WordPress-centric search engine for devs and theme authors



add_term_relationship ›

Since4.7.0
Deprecatedn/a
do_action( 'add_term_relationship', $object_id, $tt_id, $taxonomy )
Parameters: (3)
  • (int) $object_id Object ID.
    Required: Yes
  • (int) $tt_id Term taxonomy ID.
    Required: Yes
  • (string) $taxonomy Taxonomy slug.
    Required: Yes
Defined at:
Codex:

Fires immediately before an object-term relationship is added.





Source

do_action( 'add_term_relationship', $object_id, $tt_id, $taxonomy );