\um\corePermalinks

Class Permalinks

Summary

Methods
Properties
Constants
__construct()
set_current_url()
get_query_array()
get_current_url()
activate_account_via_email_link()
activate_url()
check_for_querystrings()
add_query()
remove_query()
slug_exists_user_id()
profile_permalink()
profile_slug()
$core
$current_url
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$core

$core

$current_url

$current_url

Methods

__construct()

__construct() : mixed

Permalinks constructor.

Returns

mixed

set_current_url()

set_current_url() : mixed

Set current URL variable

Returns

mixed

get_query_array()

get_query_array() : array

Get query as array

Returns

array

get_current_url()

get_current_url(bool  $no_query_params = false) : string

Get current URL anywhere

Parameters

bool $no_query_params

Returns

string

activate_account_via_email_link()

activate_account_via_email_link() : mixed

Activates an account via email

Returns

mixed

activate_url()

activate_url() : bool|string

Makes an activate link for any user

Returns

bool|string

check_for_querystrings()

check_for_querystrings() : mixed

Checks for UM query strings

Returns

mixed

add_query()

add_query( $key,  $value) : string

Add a query param to url

Parameters

$key
$value

Returns

string

remove_query()

remove_query( $key,  $value) : string

Remove a query param from url

Parameters

$key
$value

Returns

string

slug_exists_user_id()

slug_exists_user_id(string  $slug) : int|bool

Parameters

string $slug

Returns

int|bool

profile_permalink()

profile_permalink(string  $slug) : string

Get Profile Permalink

Parameters

string $slug

Returns

string

profile_slug()

profile_slug(string  $full_name, string  $first_name, string  $last_name) : string

Generate profile slug

Parameters

string $full_name
string $first_name
string $last_name

Returns

string