Trait WP
Trait VSP_Framework_WP_Trait
Direct Known Users
VSP\Helper
Namespace: VSP\Core\Traits
Author: Varun Sridharan varunsridharan23@gmail.com
Located at includes/core/traits/class-wp.php
Author: Varun Sridharan varunsridharan23@gmail.com
Located at includes/core/traits/class-wp.php
public static
boolean
|
#
is_user_role( null $role = null, null $current_role = null )
Checks if given user role is the same as current user role |
public static
mixed|string|WP_User
|
|
public static
integer
|
|
public static
array
|
#
filter_roles( array $required = array() )
This function will filter vsp_user_roles_as_options function and provide only the given user role slug values |
public static
array
|
#
user_roles_lists( boolean $only_slug = false )
Returns only user roles as options or just a array of slug. |
public static
mixed
|
#
user_role_title( string|boolean $slug, string|boolean $default = false )
Returns User Role's title for the given user slug. |
public static
array
|
|
public static
string
|