um_trim_string()
um_trim_string( $s, int $length = 20) : string
Trim string by char length
Parameters
$s | ||
int | $length |
um_fetch_user( $user_id) : mixed
Sets a specific user and prepares profile data and user permissions and makes them accessible.
$user_id | (required) A user ID is required. This is the user's ID that you wish to set/retrieve |
um_is_amp(bool $check_theme_support = true) : bool
Check whether the current page is in AMP mode or not.
We need to check for specific functions, as there is no special AMP header.
bool | $check_theme_support | Whether theme support should be checked. Defaults to true. |
um_safe_redirect(string $url) : mixed
UM safe redirect. By default, you can be redirected only to WordPress installation Home URL. Fallback URL is wp-admin URL.
But it can be changed through filters and extended by UM Setting "Allowed hosts for safe redirect (one host per line)" and filter um_wp_safe_redirect_fallback
.
string | $url | redirect URL. |