[wp-trac] [WordPress Trac] #21198: Add tag id to callback to allow customizing of the tooltip text in tag clouds

WordPress Trac noreply at wordpress.org
Thu Feb 28 22:32:15 UTC 2013


#21198: Add tag id to callback to allow customizing of the tooltip text in tag
clouds
------------------------------+------------------
 Reporter:  najamelan         |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  3.6
Component:  Taxonomy          |     Version:
 Severity:  minor             |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+------------------

Comment (by toscho):

 `$args` is an array, yes. It can be used to pass custom data into the
 function, so I thought it might be useful to pass it through to open room
 for creative things. For example, one could use two tag clouds for the
 same taxonomy with the same `topic_count_text_callback` and identify both
 by a custom `instance` parameter in `$args`.

 The filter `tag_cloud_sort` uses `$args` too.

 Oh, and once this is decided, I would like to remove the
 `create_function()` in `wp_generate_tag_cloud()`. But that’s a separate
 ticket, I guess …

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21198#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list