Opened 20 months ago

Last modified 20 months ago

#18746 new enhancement

Make is_tag() accept a term name or term id

Reported by: ramiy Owned by:
Priority: normal Milestone: Awaiting Review
Component: General Version: 3.3
Severity: normal Keywords: has-patch
Cc:

Description

The is_category() function recieves as a parameter Category ID, Category Name or Category Slug.

So is the is_tax() function, it recieves as a parameter Term ID, Term Name or Term Slug.

But the is_tag() function can recieve only Tag Slug.

Attachments (1)

18746.patch (1.4 KB) - added by ramiy 20 months ago.
changes based on is_category() function

Download all attachments as: .zip

Change History (3)

  • Summary changed from Enhance the is_tag() function to Make is_tag() accept a term name

ramiy20 months ago

changes based on is_category() function

  • Keywords has-patch added
  • Summary changed from Make is_tag() accept a term name to Make is_tag() accept a term name or term id
Note: See TracTickets for help on using tickets.