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
    All Shortcodes
    myCRED shortcodes
    1. mycred_affiliate_id
    2. mycred_affiliate_link
    3. mycred_all_scratch_cards
    4. mycred_badges
    5. mycred_badges_list
    6. mycred_badges_progress
    7. mycred_best_user
    8. mycred_buy
    9. mycred_buy_form
    10. mycred_buy_pending
    11. mycred_cashcred
    12. mycred_chart_balance_history
    13. mycred_chart_circulation
    14. mycred_chart_gain_loss
    15. mycred_chart_history
    16. mycred_chart_instance_history
    17. mycred_chart_top_balances
    18. mycred_chart_top_instances
    19. mycred_content_buyer_avatars
    20. mycred_content_buyer_count
    21. mycred_content_sale_count
    22. mycred_email_subscriptions
    23. mycred_exchange
    24. mycred_give
    25. mycred_hide_if
    26. mycred_history
    27. mycred_hook_table
    28. mycred_leaderboard
    29. mycred_link
    30. mycred_list_ranks
    31. mycred_load_coupon
    32. mycred_lotteries
    33. mycred_lottery
    34. mycred_lottery_jackpot
    35. mycred_lottery_quickpick
    36. mycred_lottery_results
    37. mycred_lottery_winnings
    38. mycred_my_badges
    39. mycred_my_balance
    40. mycred_my_balance_converted
    41. mycred_my_rank
    42. mycred_my_ranking
    43. mycred_my_ranks
    44. mycred_my_ranks_progress
    45. mycred_my_transfer_fee
    46. mycred_paymentwall
    47. mycred_pending_transfers
    48. mycred_rank_progress
    49. mycred_referral_stats
    50. mycred_sales_history
    51. mycred_scratch_cards
    52. mycred_scratch_cards_remaining
    53. mycred_scratch_history
    54. mycred_sell_this
    55. mycred_sell_this_ajax
    56. mycred_send
    57. mycred_show_if
    58. mycred_stripe_buy
    59. mycred_stripe_subscribe
    60. mycred_stripe_subscription
    61. mycred_total_balance
    62. mycred_total_points
    63. mycred_total_since
    64. mycred_transfer
    65. mycred_users_of_all_ranks
    66. mycred_users_of_rank
    67. mycred_video
    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: Shortcodes
All myCRED shortcodes available since later version.

Codex / Shortcodes

mycred_affiliate_idShortcode

Used by the Point for referrals hook, this shortcode will return the current logged in users referral ID.

mycred_affiliate_linkShortcode

Used by the Point for referrals hook, this shortcode will append the current users referral link to a given URL. If no URL is given, the current page’s URL is used.

mycred_all_scratch_cardsShortcode

This shortcode will render all active scratch card sets that you currently have installed on your website

mycred_badgesShortcode

This shortcode returns all published badges setup via the Badge add-on.

mycred_badges_listShortcode
Description This shortcode allows you to display all published badges that have ever existed on your website and define them under their respective achievement types. We have includes a badge search functionality that allows any user to run a unique search on all published badges. Requires the Badge add-on to be enabled. Available since version [...]
mycred_badges_progressShortcode
Description This custom shortcode allows you to show a progress bar for your badges  for current user . You can select the colors to use, if the progress bar should be animated and also there is individual progressbar for badge  requirement for the users current badge under the progress bar. You can also manually give [...]
mycred_best_userShortcode

This shortcode allows you to present the “best” user according to their total accumulated balance or by one or more references.

mycred_buyShortcode

This shortcode will generate an anchor element for buying points according to given attributes.

mycred_buy_formShortcode

This shortcode will generate a html form for purchasing creds.

mycred_buy_pendingShortcode

This shortcode will show the current logged in users pending buyCRED points purchases. The shortcode will only show pending payments and not completed payments! Users can select to cancel or pay a pending payment.

mycred_cashcredShortcode

This shortcode will generate an anchor element for buying points according to given attributes.

mycred_chart_balance_historyShortcode

This shortcode will render the total amount of points a specific user has gained / lost on a daily/weekly/monthly/yearly basis.

mycred_chart_circulationShortcode

This shortcode will render charts based on the amount of points that currently exists amongst your users.

mycred_chart_gain_lossShortcode

This shortcode will render charts based on the amount of points that has been given to users vs. the total amount taken for a particular point type.

mycred_chart_historyShortcode

This shortcode will render the average amount of points that has been awarded on your website for a given period.

mycred_chart_instance_historyShortcode

This shortcode will render the total amount of points your users has gained / lost on a daily/weekly/monthly/yearly basis.

mycred_chart_top_balancesShortcode

This shortcode will render a list of balances ordered by size.

mycred_chart_top_instancesShortcode

This shortcode will render a list of the most common ways your users gain / spend points on your site.

mycred_content_buyer_avatarsShortcode

This shortcode allows you to show the avatars of buyers of the content.

mycred_content_buyer_countShortcode

This shortcode renders the total number of users that have purchased the content.

mycred_content_sale_countShortcode

This shortcode renders the total number of times the content has been purchased.

mycred_email_subscriptionsShortcode

This shortcode allows your users to unsubscribe to any email notifications you have setup that are sent to the user. Notices sent to admins can not be unsubscribed!

mycred_exchangeShortcode

This shortcode allows your users to exchange one point type for another based on an exchange rate that you set.

mycred_giveShortcode

This shortcode allows you to award or deduct points from the current user when this shortcode is executed.

mycred_hide_ifShortcode

This shortcode allows you to hide parts of your content for those who fulfil the requirements you set.

mycred_historyShortcode

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

mycred_hook_tableShortcode

Show your users how they can earn points based on how you setup your hooks.

mycred_leaderboardShortcode

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

mycred_linkShortcode

This shortcode allows you to award or deduct points from the current user when their click on the generated link. Outputs a anchor element and calls the mycred-click-link jQuery script.

mycred_list_ranksShortcode

This shortcode allows you to list all ranks with the point requirements and / or the members count for each rank.

mycred_load_couponShortcode

This shortcode allows your users to redeem coupons you created using the Coupons add-on.

mycred_lotteriesShortcode

This shortcode allows you to display a given number of lotteries currently setup on your website.

mycred_lotteryShortcode

This shortcode allows you to display a specific lottery in your post/page content.

mycred_lottery_jackpotShortcode

This shortcode allows you to show a given lotteries current jackpot.

mycred_lottery_quickpickShortcode

This shortcode allows quick purchases of lottery entries with or without a custom price.

mycred_lottery_resultsShortcode

This shortcode allows you to show past results for a specific lottery in your post/page content.

mycred_lottery_winningsShortcode

This shortcode allows you to show how many points users can win for the nominated lottery.

mycred_my_badgesShortcode

This shortcode returns the current logged in users earned badges, if there is any.

mycred_my_balanceShortcode

This shortcode returns the current users myCRED points balance.

mycred_my_balance_convertedShortcode
Description This shortcode will convert the total amount of points your users has gained / lost into specified currency. Available since version 1.8.6 Shortcode Attributes Attribute Type Required Default Description rate string No 1 Insert your conversion rate as per your wish even in decimal points. The Points will be multiplied with the defined figure. [...]
mycred_my_rankShortcode

This shortcode allows you to show the rank title or logo of the user viewing the shortcode.

mycred_my_rankingShortcode
Shortcode Description This shortcode allows you to show a given users or the current users position in a particular leaderboard. Nothing will be returned if the user viewing the shortcode is not logged in. Requirements myCRED 1.4 or higher. NavigationmyCRED Home About Add-ons Support Store Showcase Usage in content [mycred_my_ranking] Usage in theme files echo [...]
mycred_my_ranksShortcode

This shortcode allows you to show all ranks a user currently has.

mycred_my_ranks_progressShortcode
Description This custom shortcode allows you to show a progress bar for your users current rank. You can select the colors to use, if the progress bar should be animated and to show the minimum and maximum rank requirement for the users current rank under the progress bar. Requires the Ranks add-on to be enabled [...]
mycred_my_transfer_feeShortcode

This shortcode allows you to show the current logged in users transfer fee (if used).

mycred_paymentwallShortcode

This shortcode renders the Paymentwall widget you have set to use with the buyCRED add-on.

mycred_pending_transfersShortcode

This shortcode will render a table listing all the pending incoming our outgoing transfers for the user viewing the shortcode.

mycred_rank_progressShortcode

This shortcode uses the Progress Bar shortcode in Visual Composer to present the current users rank progress towards the next rank.

mycred_referral_statsShortcode

Used by the Point for referrals hook, this shortcode will append the current users referral link to a given URL. If no URL is given, the current page’s URL is used.

mycred_sales_historyShortcode

This shortcode returns the current users purchase history of content set for sale on your site using the Sell Content Add-on.

mycred_scratch_cardsShortcode

Renders the scratch card add-ons play field where users can buy and scratch cards.

mycred_scratch_cards_remainingShortcode

Shows the remaining cards in a given scratch card set.

mycred_scratch_historyShortcode

This shortcode filters the mycred_history shortcode to show all the times a user has won playing scratch cards.

mycred_sell_thisShortcode

While you can sell the entire content of a post or page, you can use this shortcode to sell parts of the content allowing you to show “teasers” in the remaining content.

mycred_sell_this_ajaxShortcode

While you can sell the entire content of a post or page (or any other custom post type), you can use this shortcode to sell parts of the content allowing you to show “teasers” in the remaining content.

mycred_sendShortcode

This shortcode allows the current user to send a pre-set amount of points to a pre-set user. A simpler version of the mycred_transfer shortcode.

mycred_show_ifShortcode

This shortcode allows you to show parts of your content for those who fulfil the requirements you set.

mycred_stripe_buyShortcode

Creates a point purchase button to be used with Stripe.

mycred_stripe_subscribeShortcode

This shortcode allows you to setup subscription buttons which triggers the Stripe Checkout window.

mycred_stripe_subscriptionShortcode

This shortcode will show a table where users can view their current subscription details.

mycred_total_balanceShortcode

This shortcode will show a users total points balance of either one particular point type or by adding up multiple point types into one total.

mycred_total_pointsShortcode

This shortcode allows you to show the total amount of points currently in circulation or the total amount of points awarded or deducted from your users for a specific instance.

mycred_total_sinceShortcode

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

mycred_transferShortcode

This shortcode will generate the transfer form allowing users to send points to each other.

mycred_users_of_all_ranksShortcode

This shortcode returns a list of users for each role in descending order.

mycred_users_of_rankShortcode

This shortcode returns a list of users for a specific published role, ordered by their account balance.

mycred_videoShortcode

With this shortcode you can embed YouTube videos in your content and award points to users who views them. Added in 1.2

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 - 2022 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
  • 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