Filter hook 'edit_profile_url'

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

View Source

edit_profile_url

Filter Hook
Description
Filters the URL for a user's profile editor.

Hook Information

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

Hook Parameters

Type Name Description
string $url The complete URL including scheme and path.
int $user_id The user ID.
string $scheme Scheme to give the URL context. Accepts 'http', 'https', 'login', 'login_post', 'admin', 'relative' or null.

Usage Examples

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

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

Source Code Context

wp-includes/link-template.php:4044 - How this hook is used in WordPress core
<?php
4039  	 * @param string $url     The complete URL including scheme and path.
4040  	 * @param int    $user_id The user ID.
4041  	 * @param string $scheme  Scheme to give the URL context. Accepts 'http', 'https', 'login',
4042  	 *                        'login_post', 'admin', 'relative' or null.
4043  	 */
4044  	return apply_filters( 'edit_profile_url', $url, $user_id, $scheme );
4045  }
4046  
4047  /**
4048   * Returns the canonical URL for a post.
4049   *

PHP Documentation

<?php
/**
	 * Filters the URL for a user's profile editor.
	 *
	 * @since 3.1.0
	 *
	 * @param string $url     The complete URL including scheme and path.
	 * @param int    $user_id The user ID.
	 * @param string $scheme  Scheme to give the URL context. Accepts 'http', 'https', 'login',
	 *                        'login_post', 'admin', 'relative' or null.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 3
  • File: wp-includes/link-template.php
Related Hooks

Related hooks will be displayed here in future updates.