Constructs and returns the myCRED_Settings object based on a given point type.
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.
Navigation: Description Usage Parameters Return Description This function allows you to add a new notification for a specific user. Notifications are shown when the user logs in (if the notice is generated when they are not online) or on the next page reload (if they are logged in). Usage $notice = array( ‘user_id’ => 1, […]
This function will assign ranks to every single user that has an entry in the myCRED Log.
This function counts the total number of occurrences a given reference combined with a ref id is used in the log either overall or for a specific user.
This function counts the total number of occurrences a given reference is used in the log either overall or for a specific user.
Checks if a given user should be excluded. These are either users who are in the exclude list or if “Exclude Plugin Editors” or “Exclude Creds Editors” are set to true.
This function will query all published ranks to see where the given user fits in. If requested, the found rank is saved for the given user.
Flushes a given widgets cache.
Retrieves the current users rank title. Uses mycred_get_users_rank.
This function returns the number of published rank posts currently available in your database.
Retrieves the rank object based on the rank name.
Retrieves the rank ID from a rank title.
Retreves a given ranks logo (featured image). Uses get_the_post_thumbnail.
Returns an associative array of all published ranks in descending order.
Returns the current settings for the myCRED Remote API.
Returns the myCRED_Settings object and core settings.
Returns the myCRED Network Settings.
Counts the total amount of points that has been entered into the log between two given UNIX timestamps. Optionally you can restrict counting to a specific user or specific reference (or both).
This function returns a given users current point balance without any prefix or suffix (if used)
This function returns a given users current point balance formated with prefix and suffix (if used).
Returns an array of User IDs for a given rank title or rank id.
This function will retrieve a given users current rank object or return an empty string if no rank was found.
Checks to see if there are any registered ranks.
Checks if a given user or the current user can either edit the myCRED plugin or edit users creds.
Returns the myCRED plugin label.
This function will draw a set of numbers at random between two set ranges.
Returns the singular or plural form of the name given to creds.
Checks to see if the Master Template feature for Multisites has been enabled.
Checks if a given rank has a logo (featured image). Returns either true or false.
Returns the myCRED_Rankings object. See the myCRED_Ratings class for more information.
Returns a given user’s position (ranking) on the leaderboard, with the user who has the largest amount of points on your website having ranking 1.
Strips HTML tags from a given string. Optionally you can overwrite the default allowed tags.
Removes a given amount of creds from a specific user. Once the users balance has been updated, a new log entry is made under the given reference.
Returns the Transfer form, allowing users to send creds to each other.
Checks if a user can make a transfer. Checks to make sure the users balance is not zero and if the user has reached the transfer limit (if used).