Opened 11 years ago
Closed 11 years ago
#24273 closed enhancement (fixed)
Provide a way for Theme/Plugin developers to get a list of user contact methods
Reported by: | johnnyb | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Users | Keywords: | has-patch |
Focuses: | Cc: |
Description
When templating an author page it is useful to be able to provide a list of social media links. There's great support for adding custom links using the user_contactmethods filter, but there's no public way to get a list of those contact methods without the user's other info mixed in.
There is a private function _wp_get_user_contactmethods(), that does this. Why not make it public?
Attachments (2)
Change History (9)
#2
follow-up:
↓ 3
@
11 years ago
- Keywords has-patch added
Patch added. It simply declares the function public, and removes the _ from the beginning of the function name, (and from calls to the function).
We could also provide a private wrapper for the public function if we need to reserve the right to modify the private implementation at some point.
Note: See
TracTickets for help on using
tickets.
I'll submit a patch in a few minutes.