\um\corePermalinks

Class Permalinks

Summary

Methods
Properties
Constants
__construct()
set_current_url()
um_rel_canonical_()
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()
admin_act_url()
$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 : 

Type

$current_url

$current_url : 

Type

Methods

__construct()

__construct() 

Permalinks constructor.

set_current_url()

set_current_url() 

Set current URL variable

um_rel_canonical_()

um_rel_canonical_() 

SEO canonical href bugfix

get_query_array()

get_query_array() : array

Get query as array

Returns

array

get_current_url()

get_current_url(boolean  $no_query_params = false) : mixed|void

Get current URL anywhere

Parameters

boolean $no_query_params

Returns

mixed|void

activate_account_via_email_link()

activate_account_via_email_link() 

Activates an account via email

activate_url()

activate_url() : boolean|mixed|string|void

Makes an activate link for any user

Returns

boolean|mixed|string|void

check_for_querystrings()

check_for_querystrings() 

Checks for UM query strings

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(  $slug) : integer|null|string

Parameters

$slug

Returns

integer|null|string

profile_permalink()

profile_permalink(string  $slug) : string

Get Profile Permalink

Parameters

string $slug

Returns

string —

$profile_url

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

admin_act_url()

admin_act_url(  $action,   $subaction) : mixed|string|void

Get action url for admin use

Parameters

$action
$subaction

Returns

mixed|string|void