Opened 13 years ago
Closed 13 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7 |
| Component: | Users | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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
@
13 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I'll submit a patch in a few minutes.