WordPress.org

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

User:DrewAPicture/get edit user link


Description

Retrieves the link to a user's Edit Profile page.

Usage

 <?php get_edit_user_link$user_id ); ?> 

Parameters

user_id
(integer) (optional) User ID.
Default: __('Edit This')

Examples

Display Edit User Link on Author Archive Page

Displays edit user link with link text "Edit User".

<?php printf( '<a href="%s">Edit User</a>', get_edit_user_link() ); ?>

Default Usage

Returns edit user link.

<?php get_edit_post_link(); ?>

Changelog

  • Since: 3.5.0

Source File

get_edit_user_link() is located in wp-includes/link-template.php

Related

Template:Edit User Tags

See also index of Function Reference and index of Template Tags.