\UM_Functions

Class UM_Functions

Summary

Methods
Properties
Constants
__construct()
is_request()
get_ajax_route()
init_variables()
tooltip()
excluded_taxonomies()
get_template()
locate_template()
$options
$screenload_flags
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$options

$options : 

Type

$screenload_flags

$screenload_flags : array

Type

array — variable for Flags

Methods

__construct()

__construct() 

UM_Functions constructor.

is_request()

is_request(string  $type) : boolean

What type of request is this?

Parameters

string $type

String containing name of request type (ajax, frontend, cron or admin)

Returns

boolean

get_ajax_route()

get_ajax_route(string  $route, string  $method) : string

Get ajax routed URL

Parameters

string $route
string $method

Returns

string

init_variables()

init_variables() 

Set variables

tooltip()

tooltip(string  $tip, boolean  $allow_html = false, boolean  $echo = true) : string

Help Tip displaying

Function for render/displaying UltimateMember help tip

Parameters

string $tip

Help tip text

boolean $allow_html

Allow sanitized HTML if true or escape

boolean $echo

Return HTML or echo

Returns

string

excluded_taxonomies()

excluded_taxonomies() : mixed|void

Returns

mixed|void

get_template()

get_template(string  $template_name, string  $basename = '', array  $t_args = array(), boolean  $echo = false) : string|void

Output templates

Parameters

string $template_name
string $basename

(default: '')

array $t_args

(default: array())

boolean $echo

Returns

string|void

locate_template()

locate_template(string  $template_name, string  $path = '') : string

Locate a template and return the path for inclusion.

Parameters

string $template_name
string $path

(default: '')

Returns

string