Tag Archives: set

Set Badge To User

set_badge_to_user($user_id, $badge_url, $badge_title)

This function let’s you assign badges to your users.

Options:

OPTIONS DEFAULT ALTERNATIVES
user_id any user is should passed as parameter none
badge_url a valid URL for your badge file empty
badge_title any valid text for the title of your bage cannot be empty

Example:

			
global $xoouserultra;
			

$user_id = 11;	//use your custom user id.
$badge_url = 'http://usersultra.com/uultra-testing/wp-content/plugins/users-ultra-pro/addons/badges/badges/trophy.png';
$badge_title = 'Pro Member';			
$xoouserultra->api->set_badge_to_user($user_id, $badge_url, $badge_title);