Chapters

Category: mycred/balance

A compilation of items related to point balances.

mycred_add

Adds a given amount of creds to a specific user. Once the users balance has been updated, a new log entry is made under the given reference.

Continue Reading

mycred_add

This filter can be used to stop a myCRED point transaction before it is processed.

Continue Reading

mycred_add_finished

This filter is the last filter that runs once a transaction has been processed, no matter of the outcome.

Continue Reading

myCRED_Balance

The Balance object consists of the balance values for both the current and total balance along with the point type. A balance object only holds information about one particular point type.

Continue Reading

mycred_best_user

This shortcode allows you to present the “best” user according to their total accumulated balance or by one or more references. The shortcode by default shows the users name and avatar but this can be customized to show the details you want.

Continue Reading

mycred_display_users_balance

Returns a given users current balance for a specific point type formatted.

Continue Reading

mycred_display_users_total_balance

Returns a given users total balance for a specific point type formatted.

Continue Reading

mycred_format_creds

This filter allows you to make adjustments to points before they are rendered on your website.

Continue Reading

mycred_format_number

Adjust how points are formatted before being displayed and before a prefix / suffix is applied.

Continue Reading

mycred_get_users_balance

This function will return a given users current points balance.

Continue Reading

mycred_get_users_cred

This filter allows you to make adjustments to a users balance as it is retrieved from the database.

Continue Reading

mycred_get_users_total_balance

This function returns a given user's total point balance for a specific point type.

Continue Reading

mycred_label_my_balance

This filter allows you to change how a users balance is displayed in the toolbar (if used)

Continue Reading

mycred_my_balance

This shortcode allows you to show the balance of the user viewing the shortcode or a specific user. By default, the balance is displayed formatted with a wrapping element, however these can be disabled and you can show a balance inline without any formatting.

Continue Reading

mycred_my_balance_converted

This shortcode will convert the total amount of points your users has gained / lost into specified currency.

Continue Reading

myCRED_Point_Type

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

Continue Reading

mycred_query_users_total

This function will query the myCRED log in order to get a given users total balance for a particular point type.

Continue Reading

mycred_run_this

This filter allows you to adjust a request before it is processed by myCRED.

Continue Reading

mycred_subtract

This function allows you to decrease a users balance by deducting a specific amount from it.

Continue Reading

mycred_total_balance

This shortcode will show a users total points balance by adding up two or more point types into one.

Continue Reading

mycred_total_points

This shortcode allows you to show the total amount of points currently in circulation or the total amount of points awarded or deducted from your users for a specific event.

Continue Reading

mycred_update_user_balance

This action hook fires each time a users balance is updated.

Continue Reading