Filter hook 'get_edit_user_link'

in WP Core File wp-includes/link-template.php at line 1770

View Source

get_edit_user_link

Filter Hook
Description
Filters the user edit link.

Hook Information

File Location wp-includes/link-template.php View on GitHub
Hook Type Filter
Line Number 1770

Hook Parameters

Type Name Description
string $link The edit link.
int $user_id User ID.

Usage Examples

Basic Usage
<?php
// Hook into get_edit_user_link
add_filter('get_edit_user_link', 'my_custom_filter', 10, 2);

function my_custom_filter($link, $user_id) {
    // Your custom filtering logic here
    return $link;
}

Source Code Context

wp-includes/link-template.php:1770 - How this hook is used in WordPress core
<?php
1765  	 * @since 3.5.0
1766  	 *
1767  	 * @param string $link    The edit link.
1768  	 * @param int    $user_id User ID.
1769  	 */
1770  	return apply_filters( 'get_edit_user_link', $link, $user->ID );
1771  }
1772  
1773  //
1774  // Navigation links.
1775  //

PHP Documentation

<?php
/**
	 * Filters the user edit link.
	 *
	 * @since 3.5.0
	 *
	 * @param string $link    The edit link.
	 * @param int    $user_id User ID.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-includes/link-template.php
Related Hooks

Related hooks will be displayed here in future updates.