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
Tag: shortcode

Codex / shortcode

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_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_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_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_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_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_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_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_my_balanceShortcode

This shortcode returns the current users myCRED points balance.

mycred_my_rankShortcode

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

mycred_my_ranksShortcode

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

mycred_paymentwallShortcode

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

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_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_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_users_of_rankFilter

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

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

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.

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
  • Hire a Developer
  • Support Forums
  • Plugin Changelog
  • Contact

Copyright 2013 - 2018 Gabriel S Merovingi; All rights reserved. myCRED is licensed under GPL 2.0

Terms & Conditions • Use of Cookies • Store Policy • Community RulesHosted by One.com

myCRED Donations

Donate via PayPal

Donate via PayPal

Donate Bitcoin

myCRED Bitcoin Wallet

3LVrDPjgTkPfqGARXwAZW9cJBQEYo4FHsB

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.