_wp_credits_add_profile_link()
Retrieves the link to a contributor's WordPress.org profile page.
Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.
No Hooks.
Return
null
. Nothing (null).
Usage
_wp_credits_add_profile_link( $display_name, $username, $profiles );
- $display_name(string) (required) (passed by reference — &)
- The contributor's display name (passed by reference).
- $username(string) (required)
- The contributor's username.
- $profiles(string) (required)
- URL to the contributor's WordPress.org profile page.
Changelog
Since 3.2.0 | Introduced. |
_wp_credits_add_profile_link() wp credits add profile link code WP 6.6.2
function _wp_credits_add_profile_link( &$display_name, $username, $profiles ) { $display_name = '<a href="' . esc_url( sprintf( $profiles, $username ) ) . '">' . esc_html( $display_name ) . '</a>'; }