A free points management plugin for WordPress.
myCRED Logo
myCRED Logo
  • Membership New
  • Chapters
    • Chapter I – Introduction
    • Chapter II – Getting Started
    • Chapter III – Add-ons
    • Chapter IV – Premium Add-ons
    • Chapter V – For Developers
    • Chapter VI – Reference Guides
  • Categories
    • Actions
    • Classes
    • Constants
    • Filters
    • Functions
    • Objects
    • Shortcodes
    • Hooks
    • Template Tags
  • Packages
    • mycred/api
    • mycred/badge
    • mycred/balance
    • mycred/banking
    • mycred/content
    • mycred/core
    • mycred/coupon
    • mycred/email
    • mycred/game
    • mycred/log
    • mycred/notice
    • mycred/payment
    • mycred/purchase
    • mycred/rank
    • mycred/transfer
  • Store
  • Download
    Packages
    Filter by package
    1. mycred/api
    2. mycred/badge
    3. mycred/balance
    4. mycred/banking
    5. mycred/buddypress
    6. mycred/content
    7. mycred/core
    8. mycred/coupon
    9. mycred/email
    10. mycred/game
    11. mycred/hook
    12. mycred/log
    13. mycred/notice
    14. mycred/payment
    15. mycred/purchase
    16. mycred/rank
    17. mycred/stats
    18. mycred/transfer
    19. mycred/twilio
    Categories
    Filter by category
    1. Actions
    2. Classes
    3. Filters
    4. Functions
    5. Hooks
    6. Objects
    7. Shortcodes
    8. Template Tags
    Chapters
    Documentation
    1. Chapter I - Introduction
    2. Chapter II - Getting Started
    3. Chapter III - Add-ons
    4. Chapter IV - Premium Add-ons
    5. Chapter V - For Developers
    6. Chapter VI - Reference Guides
Package: mycred/log
A compilation of items related to the log.

Codex / mycred/log

mycred_all_referencesFilter

This filter allows you to add / remove / rename any of the built-in myCRED references.

mycred_allowed_tagsFilter

This filter allows you to change the HTML elements that myCRED will allow in the history shortcode.

mycred_count_all_ref_instancesFunction

This function returns an associative array of references and the number of times each occur in your log.

mycred_count_ref_id_instancesFunction

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_count_ref_instancesFunction

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

mycred_get_total_by_timeFunction

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_users_reference_sumFunction

This function will return an array of all point instances a user has based on the log.

mycred_has_entryFilter

This filter allows you to made adjustments when myCRED checks for records in the log. Mainly used to enforce rules or to make sure entries are unique.

mycred_historyShortcode

Show your myCRED Log on the front end, either the entire log, a specific users log or the current users log.

myCRED_HistoryObject

This object contains a given users log history for a specific point type.

mycred_leaderboardShortcode

This shortcode allows you to create leaderboard based on either your users balances or particular events e.g. approved comments.

mycred_log_{column}Filter

This filter allows you to return the content of a custom column that you have added using the mycred_log_column_headers filter.

mycred_log_bulk_actionsFilter

This filter allows you to adjust the bulk actions that are available on the log page in the admin area.

mycred_log_column_{type}_headersFilter

This filter allows you to adjust the column headers for the log table.

mycred_log_column_headersFilter

This filter allows you to adjust or add columns that are shown when viewing the log history table.

mycred_log_dateFilter

This filter allows you to customize how the log entry dates are presented.

mycred_log_row_classesFilter

This filter allows you to add custom classes to each table row when viewing the myCRED Log.

mycred_parse_tags_amountFilter

This filter allows you to adjust or add your own custom amount related template tag, to use in log entries.

mycred_parse_tags_commentFilter

This filter allows you to adjust or add your own custom comment related template tag to use in log entries.

mycred_parse_tags_generalFilter

This filter allows you to adjust or add your own custom generic template tag to use in log entries.

mycred_parse_tags_postFilter

This filter allows you to adjust or add your own custom post related template tag to use in log entries.

mycred_parse_tags_userFilter

This filter allows you to adjust or add your own custom user related template tag to use in log entries.

myCRED_Query_LogClass

The myCRED_Query_Log class handles all log queries and optionally present the results by constructing a HTML table.

mycred_query_log_argsFilter

Used by the myCRED_Query_Log class, this filter allows you to make adjustments to the query arguments before it is run by class.

mycred_ranking_rowFilter

This filter allows you to adjust how each row is rendered in the leaderboard.

mycred_ranking_sqlFilter

This filter allows you to adjust the Leaderboard SQL query before it is executed.

mycred_total_sinceShortcode

This shortcode will show the total number of points a user has gained in a given timeframe.

0

About myCred

myCred is a free, open-source and developer friendly points management tool for WordPress powered websites.

Download Rate Plugin

Documentation

  • Add-ons
  • Core Shortcodes
  • F.A.Q.
  • Tutorials
  • Third Party Plugins
  • Code Snippets

Support

  • Product Licenses
  • Customization
  • Support Forums
  • Plugin Changelog
  • Contact

Copyright 2013 - 2021 by WPExperts; All rights reserved. myCred is licensed under GPL 2.0

Terms & Conditions • Use of Cookies • Store Policy • Community Rules

Suggest Codex Example

You can submit suggestions for codex examples that you have available as a public gist. If you are a member on the mycred.me website, you can earn Tokens for each submission. To claim these Tokens, make sure you provide your mycred.me username.

Please make sure the example you submit is relevant and if you include documentation, it's provided in English.

logo
  • Membership New
  • Chapters
    • Chapter I – Introduction
    • Chapter II – Getting Started
    • Chapter III – Add-ons
    • Chapter IV – Premium Add-ons
    • Chapter V – For Developers
    • Chapter VI – Reference Guides
  • Categories
    • Actions
    • Classes
    • Constants
    • Filters
    • Functions
    • Objects
    • Shortcodes
    • Hooks
    • Template Tags
  • Packages
    • mycred/api
    • mycred/badge
    • mycred/balance
    • mycred/banking
    • mycred/content
    • mycred/core
    • mycred/coupon
    • mycred/email
    • mycred/game
    • mycred/log
    • mycred/notice
    • mycred/payment
    • mycred/purchase
    • mycred/rank
    • mycred/transfer
  • Store
  • Download