Category: mycred/log

A compilation of items related to the log.

mycred_all_references

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

Continue Reading

mycred_allowed_tags

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

Continue Reading

mycred_count_all_ref_instances

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

Continue Reading

mycred_count_ref_id_instances

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.

Continue Reading

mycred_count_ref_instances

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

Continue Reading

mycred_get_total_by_time

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.

Continue Reading

mycred_get_users_reference_sum

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

Continue Reading

mycred_has_entry

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.

Continue Reading

mycred_history

This shortcode allows you to show your log in the front end. You can select to show all log entries or show a specific users log entries. Perfect for a “History” page for your users if you do not allow them into the admin area.

Continue Reading

myCRED_History

This object contains log related data for a given myCRED balance. It contains an array of data to help with certain history checks, such as checking if a user got a record of getting points for a certain object ID (e.g. post or page).

Continue Reading

mycred_leaderboard

This shortcode allows you to create leaderboards that are based on either your users current / total balances or based on events in the log, e.g. a leaderboard showing who gained most points from approved comment or published content.

Continue Reading

mycred_log_{column}

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

Continue Reading

mycred_log_bulk_actions

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

Continue Reading

mycred_log_column_{type}_headers

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

Continue Reading

mycred_log_column_headers

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

Continue Reading

mycred_log_date

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

Continue Reading

mycred_log_row_classes

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

Continue Reading

mycred_parse_tags_amount

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

Continue Reading

mycred_parse_tags_comment

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

Continue Reading

mycred_parse_tags_general

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

Continue Reading

mycred_parse_tags_post

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

Continue Reading

mycred_parse_tags_user

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

Continue Reading

myCRED_Query_Log

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

Continue Reading

mycred_query_log_args

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

Continue Reading

mycred_ranking_row

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

Continue Reading

mycred_ranking_sql

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

Continue Reading

mycred_total_since

This shortcode will show the total number of points a user has gained in a given timeframe. For example you can show the total number of points a user has gained today (default).

Continue Reading