mycred_create_new_coupon

This function creates a new myCRED Coupon post object. Uses wp_insert_post.

mycred_add_user_meta

A wrapper function for add_user_meta, it assures that point related data is saved under the correct meta key structure.

mycred_assign_badge_to_user

This function assigns a given badge and badge level to a specific user. It is used by other badge assignment functions to connect a badge with a user.

mycred_assign_badge

This function assigns a given badge to all users that meet the set requirements.

mycred_get_users_profile_url

This function will return a given users profile URL based on your websites setup.

mycred_count_ref_id_instances

Returns the number of times a specific reference, in combination with a reference ID occurs in the log, with the option to filter by user ID or by point type.

mycred_add_new_notice

This function allows you to add a new notification for a specific user.

mycred

Constructs and returns the myCRED_Settings object based on a given point type.

mycred_label

This function returns the myCRED label.

mycred_assign_ranks

This function will assign ranks to users based on their balance.

mycred_get_remote

This function returns the Remove API (version 1.0) settings.

mycred_get_total_by_time

This function will return the total number of points logged in the log table between two dates, either in total, for a specific reference or for a specific user.

mycred_get_rank_logo

This function will return a given ranks logo image.

mycred_rank_has_logo

This function checks if a given rank has a logo using the has_post_thumbnail function.

mycred_get_users_of_rank

This function allows you to query users of a specific rank.

mycred_get_ranks

This function allows you to query existing ranks for a specific point type.