\um\coreProfile

Class Profile

Summary

Methods
Properties
Constants
__construct()
ajax_delete_profile_photo()
ajax_delete_cover_photo()
tabs()
tabs_active()
tabs_primary()
tabs_enabled()
tabs_privacy()
can_view_tab()
active_tab()
active_subnav()
show_meta()
new_ui()
$arr_user_slugs
$arr_user_roles
$active_tab
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$arr_user_slugs

$arr_user_slugs : array

Type

array

$arr_user_roles

$arr_user_roles : array

Type

array

$active_tab

$active_tab : 

Type

Methods

__construct()

__construct() 

Profile constructor.

ajax_delete_profile_photo()

ajax_delete_profile_photo() 

Delete profile avatar AJAX handler

ajax_delete_cover_photo()

ajax_delete_cover_photo() 

Delete cover photo AJAX handler

tabs()

tabs() : mixed|void

All tab data

Returns

mixed|void

tabs_active()

tabs_active() : mixed|void

Tabs that are active

Returns

mixed|void

tabs_primary()

tabs_primary() : array

Primary tabs only

Returns

array

tabs_enabled()

tabs_enabled() : string

Activated tabs in backend

Returns

string

tabs_privacy()

tabs_privacy() : array

Privacy options

Returns

array

can_view_tab()

can_view_tab(  $tab) : boolean

Check if the user can view the current tab

Parameters

$tab

Returns

boolean

active_tab()

active_tab() : mixed|void

Get active_tab

Returns

mixed|void

active_subnav()

active_subnav() : mixed|null

Get active active_subnav

Returns

mixed|null

show_meta()

show_meta(array  $array) : string

Show meta in profile

Parameters

array $array

Meta Array

Returns

string

new_ui()

new_ui(string  $position, string  $element, string  $trigger, array  $items) 

New menu

Parameters

string $position
string $element
string $trigger
array $items