Category: mycred/rank

A compilation of items related to Ranks via the Ranks add-on.

mycred_assign_ranks

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

Continue Reading

mycred_bp_rank_in_header

This filter allows you to adjust the way ranks are rendered in the BuddyPress user profile header (if used).

Continue Reading

mycred_bp_rank_in_profile

This filter allows you to adjust the way ranks are rendered in the BuddyPress user profile (if used).

Continue Reading

mycred_find_users_rank

This function will attempt to find a given users rank of a specific point type. This function can be used to just query which rank a user should have or also save this rank.

Continue Reading

mycred_find_users_rank

This filter allows you to run custom scripts when myCRED checks if a user gains a new rank.

Continue Reading

mycred_get_my_rank

This function returns the current users myCRED rank object. Uses the mycred_get_users_rank function.

Continue Reading

mycred_get_rank

This function will return the myCRED Rank Object for a given rank ID.

Continue Reading

mycred_get_rank_logo

This function will return a given ranks logo image.

Continue Reading

mycred_get_rank_object_id

This function attempts to convert a given rank name into it's post object ID.

Continue Reading

mycred_get_ranks

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

Continue Reading

mycred_get_users_of_rank

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

Continue Reading

mycred_get_users_rank

This function will retrieve a given users current rank object for a specific point type.

Continue Reading

mycred_get_users_rank_id

This function returns a given users current rank post object ID of a specific point type.

Continue Reading

mycred_have_ranks

This function checks if there are published rank post objects for a particular point type.

Continue Reading

mycred_have_ranks

This filter allows you to change the results of checking if any rank post exists, no matter the post status.

Continue Reading

mycred_list_ranks

This shortcode allows you to list all ranks with the point requirements and / or the members count for each rank. You can customize how each row is presented by wrapig the shortcode around your template.

Continue Reading

mycred_my_rank

This shortcode allows you to show the rank title or logo of the user viewing the shortcode. Will not show anything if viewed by someone who is not logged in.

Continue Reading

mycred_my_ranks

This shortcode allows you to show all ranks a user currently has. Note that this is only usable when you have ranks for multiple point types.

Continue Reading

myCRED_Rank

The rank object contains the rank post object, the set title, logo details, requirements and user count.

Continue Reading

mycred_rank_has_logo

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

Continue Reading

mycred_rank_list

This filter allows you to adjust the template used by the mycred_list_ranks shortcode when rendering each rank you have setup for a particular point type.

Continue Reading

mycred_rank_progress

This custom shortcode allows you to show a progress bar for your users current rang. You can select the colors to use, if the progress bar should be animated and to show the minimum and maximum rank requirement for the users current rank under the progress bar.

Continue Reading

mycred_register_ranks

This filter lets you make adjustments to the Ranks post type settings before it is handed over to the register_post_type function.

Continue Reading

mycred_user_got_demoted

This action hook fires each time a user has demoted to a rank that has a lower minimum point requirement set then their previous rank.

Continue Reading

mycred_user_got_promoted

This action hook fires each time a user has promoted to a rank that has a higher minimum point requirement set then their previous rank.

Continue Reading

mycred_users_of_all_ranks

This shortcode returns a list of users for each role in descending order. By default all users are returned for each rank but you can change this to any number.

Continue Reading

mycred_users_of_rank

This shortcode returns a list of users for a specific published role, ordered by their account balance. By default all users are returned for the given rank but you can set how many users to return.

Continue Reading

mycred_users_of_rank

This filter allows you to filter the row template for the mycred_users_of_rank shortcode.

Continue Reading