wpmem_profile_url()

Description

This function returns the user profile page url (if one is set in the main options tab).

The function does not echo output.  Since it returns a string, this can be used for comparisons (to see if the user is actually on the user profile page), to output a link by echoing the result, or to redirect to the user profile page.  These are just a few examples.

Parameters

$a
(string)(optional) The WP-Members action variable, generally used to display the profile page forgot password dialog (‘pwdreset’).

Return Values

(string) The URL of the user profile page.

Examples

Create a link to the user profile page:

[gist id=”71999f4cb8ec461f56fc2263e2b131bb” file=”wpmem_profile_url.php”]

Use wpmem_current_url() to compare the current page:

[gist id=”71999f4cb8ec461f56fc2263e2b131bb” file=”wpmem_profile_url_compare.php”]

Changelog

Introduced in version 3.1.1

Source

wpmem_profile_url() is located in /includes/api/api.php