A free points management plugin for WordPress.
myCRED Logo
myCRED Logo
  • 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
    All Filters
    myCRED filters
    1. mycred_add
    2. mycred_add_finished
    3. mycred_affiliate_cookie
    4. mycred_affiliate_key
    5. mycred_all_references
    6. mycred_allowed_tags
    7. mycred_apply_exchange_rate
    8. mycred_badge_image
    9. mycred_badge_user_value
    10. mycred_banking_save_interest
    11. mycred_banking_save_recurring
    12. mycred_bp_leaderboard_{$column_id}_ ...
    13. mycred_bp_leaderboard_columns
    14. mycred_bp_leaderboard_find_position
    15. mycred_bp_leaderboard_get
    16. mycred_bp_leaderboard_types
    17. mycred_bp_rank_in_header
    18. mycred_bp_rank_in_profile
    19. mycred_buycred_get_cost
    20. mycred_central_banking_ignore
    21. mycred_compound_max_limit
    22. mycred_compound_pay_max_limit
    23. mycred_decline_store_purchase
    24. mycred_delete_hook_ref
    25. mycred_em_approve_on_pay
    26. mycred_email_before_send
    27. mycred_email_instances
    28. mycred_exclude_user
    29. mycred_export_headers
    30. mycred_find_users_rank
    31. mycred_format_creds
    32. mycred_format_number
    33. mycred_get_content_price
    34. mycred_get_users_cred
    35. mycred_give_run
    36. mycred_has_entry
    37. mycred_have_ranks
    38. mycred_label
    39. mycred_label_my_balance
    40. mycred_link
    41. mycred_log_{column}
    42. mycred_log_bulk_actions
    43. mycred_log_column_{type}_headers
    44. mycred_log_column_headers
    45. mycred_log_date
    46. mycred_log_row_classes
    47. mycred_lotto_payout_type
    48. mycred_lotto_times12
    49. mycred_lotto_times24
    50. mycred_notice_js
    51. mycred_notifications
    52. mycred_notifications_note
    53. mycred_parse_tags_amount
    54. mycred_parse_tags_comment
    55. mycred_parse_tags_general
    56. mycred_parse_tags_post
    57. mycred_parse_tags_user
    58. mycred_post_is_for_sale
    59. mycred_pt_get_fee
    60. mycred_publish_hook_new
    61. mycred_publish_hook_old
    62. mycred_publish_hook_ref
    63. mycred_query_log_args
    64. mycred_rank_list
    65. mycred_ranking_row
    66. mycred_ranking_sql
    67. mycred_recurring_max_limit
    68. mycred_register_ranks
    69. mycred_run_this
    70. mycred_scratch_card_templates
    71. mycred_scratch_everyonewins
    72. mycred_sell_content_priority
    73. mycred_sell_exp_title
    74. mycred_sell_expire_calc
    75. mycred_sell_this_button
    76. mycred_sell_this_label
    77. mycred_send_language
    78. mycred_setup_addons
    79. mycred_setup_banking
    80. mycred_setup_hooks
    81. mycred_transfer_acc_limit
    82. mycred_transfer_autofill_by
    83. mycred_transfer_messages
    84. mycred_twilio_format_phone_number
    85. mycred_twilio_get_sender
    86. mycred_twilio_get_senders_id
    87. mycred_twilio_get_users_number
    88. mycred_twilio_parse_sms
    89. mycred_twilio_phone_number
    90. mycred_twilio_xml_response
    91. mycred_user_has_paid_for_content
    92. mycred_user_row_actions
    93. mycred_userpro_insufficient
    94. mycred_userpro_stop_message
    95. mycred_users_of_rank
    96. mycred_users_profile_url
    97. mycred_video_output
    98. mycred_video_query_youtube
    99. mycred_woo_order_cost
    100. mycred_woo_reward_cap
    101. mycred_woo_reward_log
    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
Category: Filters

Codex / Filters

mycred_addFilter

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

mycred_add_finishedFilter

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

mycred_affiliate_cookieFilter

This filter allows you to change the lifespan of the cookies your users receive from the “Points for referrals” hook.

mycred_affiliate_keyFilter

This filter allows you to adjust the referral key that the myCRED hook uses.

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_apply_exchange_rateFilter

This filter allows you to change the results of the apply_exchange() class method in the myCRED_Settings object.

mycred_badge_imageFilter

This filter allows you to adjust the badge image element before it is rendered.

mycred_badge_user_valueFilter

This filter allows you to adjust the value that badges add-on saves when a user earns a new badge / badge level.

mycred_banking_save_interestFilter

This filter allows you to add or adjust the settings saved by the compound interest banking service.

mycred_banking_save_recurringFilter

This filter allows you to save custom settings you might have added to the Recurring Payout service in the Banking add-on.

mycred_bp_leaderboard_{$column_id}_columnFilter

This filter allows you to render the contents of a custom leaderboard column in the myCRED BP Group Leaderboards plugin.

mycred_bp_leaderboard_columnsFilter

This filter allows you to adjust the leaderboard table columns that the myCRED BP Group Leaderboards plugin creates.

mycred_bp_leaderboard_find_positionFilter

This filter allows you to adjust or query a users leaderboard position.

mycred_bp_leaderboard_getFilter

This filter allows you to adjust or run your own custom query for BuddyPress leaderboards.

mycred_bp_leaderboard_typesFilter

This filter allows you to adjust, add or remove leaderboards types in the myCRED BP Group Leaderboards plugin.

mycred_bp_rank_in_headerFilter

This filter allows you to adjust the way ranks are rendered in the BuddyPress user profile header (if used).

mycred_bp_rank_in_profileFilter

This filter allows you to adjust the way ranks are rendered in the BuddyPress user profile (if used).

mycred_buycred_get_costFilter

This filter allows you to adjust the cost of buying points using the buyCRED add-on.

mycred_central_banking_ignoreFilter

This filter allows you to add references that the Central Banking service should ignore.

mycred_compound_max_limitFilter

This filter allows you to adjust the number of balances the compound interest banking service will process per instance.

mycred_compound_pay_max_limitFilter

This filter allows you to adjust the number of compounded interests the banking service will payout per instance.

mycred_decline_store_purchaseFilter

This filter allows you to decline a store purchase where points are used as payment.

mycred_delete_hook_refFilter

This filter allows you to adjust the reference that the Points for Deleting Content hook uses when awarding / deducting points.

mycred_em_approve_on_payFilter

When using Events Manager, you can select if bookings should be approved on payment or if admin approval is required. In case you select admin approval, you can use this filter to override this and approve the booking when paid using points.

mycred_email_before_sendFilter

This filter allows you to adjust the details of an email notification before it is sent.

mycred_email_instancesFilter

This filter allows you to add / remove or adjust email instances that is selectable when creating or editing an email notice.

mycred_exclude_userFilter

This filter allows you to exclude users from using myCRED via script.

mycred_export_headersFilter

This filter allows you to adjust what columns should be included when myCRED log entries are exported.

mycred_find_users_rankFilter

This filter allows you to run custom scripts when myCRED checks if a user gains a new rank.

mycred_format_credsFilter

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

mycred_format_numberFilter

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

mycred_get_content_priceFilter

This filter allows you to adjust the price of a given content.

mycred_get_users_credFilter

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

mycred_give_runFilter

This filter controls if the mycred_give shortcode should run or not. It can be used to either disable this shortcode or to limit when or by whom it can be used.

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_have_ranksFilter

This filter allows you to change the results of checking if any rank post exists, no matter the post status.

mycred_labelFilter

This filter allows you to change the value of the MYCRED_DEFAULT_LABEL constant, re-naming the myCRED plugin.

mycred_label_my_balanceFilter

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

mycred_linkFilter

This filter allows you to adjust the anchor element the mycred_link shortcode renders.

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_lotto_payout_typeFilter

This filter allows you to change what point type you want users to be paid out in when playing a lottery.

mycred_lotto_times12Filter

This filter allows you to adjust the available times a lottery can be scheduled using the 12 hour system. This filter is used by the drop-down menus for the lottery schedules.

mycred_lotto_times24Filter

This filter allows you to adjust the available times a lottery can be scheduled using the 24 hour system.

mycred_notice_jsFilter

This filter allows you to adjust the JavaScript variables used by the Notifications Plus add-on.

mycred_notificationsFilter

This filter is used to pass on notifications from the saved transient to the jQuery script.

mycred_notifications_noteFilter

This filter allows you to made adjustments to the notice template before it is added to the users notice transient.

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_post_is_for_saleFilter

This filter allows you to adjust the results of checking if a given post is set for sale using the Sell Content add-on.

mycred_pt_get_feeFilter

This filter allows you to adjust the fee amount for each transfer based on your preference.

mycred_publish_hook_newFilter

This filter allows you to add custom post statuses that indicates content being “published”. This is used by the “Points for publishing content” hook.

mycred_publish_hook_oldFilter

This filter allows you to adjust the post statuses a post needs to transition from in order for the “Points for Publishing Content” hook to reward it with points.

mycred_publish_hook_refFilter

This filter allows you to adjust the reference that the Points for Publishing Content hook uses when awarding / deducting points.

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_rank_listFilter

This filter allows you to adjust the template used by the mycred_list_ranks shortcode when rendering each rank you have setup for a particular point type.

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_recurring_max_limitFilter

This filter allows you to adjust the number of users the recurring payout banking service will process per instance.

mycred_register_ranksFilter

This filter lets you make adjustments to the Ranks post type settings before it is handed over to the register_post_type function.

mycred_run_thisFilter

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

mycred_scratch_card_templatesFilter

This filter allows you to add, replace or remove templates for the Scratch Card add-on.

mycred_scratch_everyonewinsFilter

This filter allows you to create scratch card sets where all cards are winners.

mycred_sell_content_priorityFilter

This filter allows you to change the priority of the Sell Content add-ons content filtering.

mycred_sell_exp_titleFilter

This filter lets your change the title used to mark the expiration length measurement.

mycred_sell_expire_calcFilter

By default, myCRED allows you to let purchases expire after a certain number of hours. This filter lets you change this calculation from hours to any other time measurements.

mycred_sell_this_buttonFilter

This filter allows you to make adjustments to the button the Sell Content add-on renders for users who have not purchased access to content set for sale.

mycred_sell_this_labelFilter

This filter allows you to rename the “myCRED Sell This” metabox that the Sell Content add-on provides for your posts and pages.

mycred_send_languageFilter

This filter lets you change the language used for the button in the mycred_send shortcode.

mycred_setup_addonsFilter

This filter allows you to register your own add-ons or remove/disable existing add-ons.

mycred_setup_bankingFilter

This filter allows you to register your own banking services or remove/disable existing services.

mycred_setup_hooksFilter

This filter allows you to add custom hooks or remove built-in ones.

mycred_transfer_acc_limitFilter

This filter allows you to overwrite the minimum account limit for transfers.

mycred_transfer_autofill_byFilter

This filter allows you to add / remove autocomplete options in the Transfer add-on.

mycred_transfer_messagesFilter

This filter allows you to adjust the transfer messages that the javascript uses when processing transfer requests.

mycred_twilio_format_phone_numberFilter

This filter allows you to adjust a given phone numbers formating.

mycred_twilio_get_senderFilter

This filter allows you to adjust the results when the Twilio Transfer plugin tries to tie a phone number to a user on your website.

mycred_twilio_get_senders_idFilter

This filter allows you to adjust the results when the Twilio Transfer plugin tries to tie a phone number to a user on your website.

mycred_twilio_get_users_numberFilter

This filter allows you to adjust the results where the Twilio Transfers plugin tries to find the phone number of a given user.

mycred_twilio_parse_smsFilter

This filter allows you to adjust the SMS message body when received by the Twilio Transfers plugin.

mycred_twilio_phone_numberFilter

This filter allows you to format a Twilio phone number into the way you format phone numbers on your website.

mycred_twilio_xml_responseFilter

This filter allows you to make adjustments to the response SMS body before it is sent to Twilio.

mycred_user_has_paid_for_contentFilter

This filter allows you to indicate if the current user has paid / not paid for a particular content.

mycred_user_row_actionsFilter

This filter allows you to remove or add custom action links when viewing your users point balance on the Users page.

mycred_userpro_insufficientFilter

This filter allows you to adjust the message a user sees in the chat window when they have run out of funds. Used by the UserPro Private Messaging hook.

mycred_userpro_stop_messageFilter

This filter allows you to stop a private message from being sent and instead trigger the “Insufficient Funds” message. Used by the UserPro Private Messaging hook.

mycred_users_of_rankFilter

This filter allows you to filter the row template for the mycred_users_of_rank shortcode.

mycred_users_profile_urlFilter

This filter allows you to adjust what URL the %user_profile_url% and the %user_profile_link% template tags point to.

mycred_video_outputFilter

This filter allows you to adjust the video embed that is generated by the mycred_video add-on.

mycred_video_query_youtubeFilter

This filter allows you to make changes to the youtube video query.

mycred_woo_order_costFilter

This filter allows you to adjust how much a users total order or cart total costs converted into points.

mycred_woo_reward_capFilter

This filter allow you to adjust the capability required for the “myCRED” point reward metabox to be visible when editing a WooCommerce product.

mycred_woo_reward_logFilter

This filter allows you to adjust the log entry myCRED adds with each WooCommerce store reward payout.

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 - 2019 byWPExperts; 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
  • 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