\um\frontendUser_Profile

Class User_Profile

Summary

Methods
Properties
Constants
__construct()
handle_edit_screen()
change_edit_user_link()
change_comment_author_url()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() : mixed

User_Profile constructor.

Returns

mixed

handle_edit_screen()

handle_edit_screen() : void

Check edit profile action and set edit mode or redirect if there aren't capabilities to edit.

change_edit_user_link()

change_edit_user_link(string  $link, int  $user_id) : string

Returns the user profile edit link using Ultimate Member plugin.

Parameters

string $link

The default edit user link.

int $user_id

The ID of the user.

Returns

string —

The customized user profile edit link.

change_comment_author_url()

change_comment_author_url(string  $comment_author_url, int  $comment_id, \WP_Comment  $comment) : string

Retrieves the user profile URL for the given comment author.

Parameters

string $comment_author_url

The URL of the comment author.

int $comment_id

The ID of the comment.

\WP_Comment $comment

The comment object.

Returns

string —

The user profile URL for the comment author.