This function will process a pending point purchase and "complete" it by paying the buyer the point they purchased.
This function will process a pending point purchase and "complete" it by paying the buyer the point they purchased.
This function will construct a given buyCRED Payment Gateway.
This function retrieves the buyCRED pending payment object based on a given pending payment ID.
This function attempts to get the WordPress post object ID for a given buyCRED pending payment ID.
This function will return all a given users currently pending buyCRED point purchases.
This function will trash a pending buyCRED point purchase payment.
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.
This function allows you to add a new notification for a specific user.
A wrapper function for add_user_meta, it assures that point related data is saved under the correct meta key structure.
This function assigns a given badge to all users that meet the set requirements.
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.
This function will assign ranks to users based on their balance.
This function checks if a user has earned a particular badge and if they have, the level they have reached.
This function checks if the central log feature is enabled on a Multisite installation.
This function will check if a content payment has expired or not.
This function returns an associative array of references and the number of times each occur in your log.
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.
Returns the number of times a specific reference occurs in the log, with the option to filter by user ID or by point type.
This function counts the number of users that has a given badge with the option to count badge level.
This function counts the number of users that has not earned a given badge.
This function checks if a coupon was successfully applied or not. Should be used in combination with the mycred_use_coupon function.
Returns an instance of the myCRED_Chart object for building charts using the Statistics add-on.
This function creates a new myCRED Coupon post object. Uses wp_insert_post.
This function will convert a well formatted date to a GMT unix timestamp.
Deletes a given recurring payout in the Banking add-on.
A wrapper function for delete_user_meta, it assures that point related data is deleted under the correct meta key structure.
This function will return the requirements you set for a particular badge in readable format.
This function renders a list of all the badges a give user has earned.
Returns a given users current balance for a specific point type formatted.
Returns a given users total balance for a specific point type formatted.
Checks if a given user is excluded from using a particular point type.
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.
Wrapper function for wp_cache_delete for deleting widget caches. Used when myCRED widget settings are saved.
This function is used throughout myCRED to prevent users from attempting to submit AJAX forms multiple times.
This function returns the myCRED Badge Object for a given badge ID.
This function returns an array of published badge IDs.
This function will return an associative array of references and badge IDs that exists on your website.
This function returns the total number of unique users that have purchased a given post.
This function returns the set price for a post that has been set for sale using the Sell Content add-on.
This function returns the total number of times a particular posts content has been purchased.
This function returns a coupon object based on a coupon post ID.
Returns an instance of the myCRED_Email object based on a given email notice post ID.
This function returns the total number of times a given coupon has been redeemed on your website.
This function will return a specific myCRED Module object.
This function returns the current users myCRED rank object. Uses the mycred_get_users_rank function.
This function returns a specific point type's given name in singular or plural form.
This function will return the myCRED Rank Object for a given rank ID.
This function attempts to convert a given rank name into it's post object ID.
This function allows you to query existing ranks for a specific point type.
This function returns the settings and status of a given scheduled recurring payout in the Banking add-on.
This function will return all currently existing recurring payout schedules in the Banking add-on.
This function returns the Remove API (version 1.0) settings.
This function returns the network settings on a Multisite installation.
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.
This function retrieves the myCRED_Transfer object, populated based on the given transfer ID.
This function will generate a unique random code for coupons.
This function will attempt to return a user ID based on either an identifying piece of information (email, login or slug) or based on keywords.
This function returns an array badge IDs that a given user has earned.
This function will return a given users current points balance.
This function returns the total number of times a user has redeemed a specific coupon.
This function allows you to query users of a specific rank.
This function will return a given users profile URL based on your websites setup.
This function will retrieve a given users current rank object for a specific point type.
This function returns a given users current rank post object ID of a specific point type.
This function will return an array of all point instances a user has based on the log.
This function returns a given user's total point balance for a specific point type.
This function will help you retrieve the point amount a user is rewarded when they buy a WooCommerce product.
This function checks if there are published rank post objects for a particular point type.
This function checks if a specific user is to be considered an "administrator".
This function attempts to process a transfer request that has been submitted by a transfer form. If no transfer form is used and you need to process a new transfer artificially, make sure you simulate a form submission by providing an array of form names and values.
This function checks if the master template feature is enabled on a Multisite installation.
This function checks if a specific post is set for sale in the Sell Content add-on.
This function checks if a given post type is set for sale in the Sell Content settings.
This function will query the myCRED log in order to get a given users total balance for a particular point type.
This function checks if a given rank has a logo using the has_post_thumbnail function.
This function attempts to refund a completed transfer.
This function will attempt to charge a given user for a piece of content that has been set for sale using the Sell Content add-on.
This function will return all available payment buttons that a user can use, in order to pay for a posts content.
This function attempts to get the current posts ID.
This function allows you to decrease a users balance by deducting a specific amount from it.
This shortcode will generate the transfer form allowing users to send points to each other.
This function will validate and a given coupon code and if the coupon can be used, redeems the coupon.
This function checks if a user can afford or allowed to make a transfer of a specified amount of points.
This function checks if a given user has a valid and active payment for a specific post that is set for sale.