Viewing 1 replies (of 1 total)
  • Plugin Author myCred

    (@designbymerovingi)

    Hi.

    Here is a custom shortcode you could use. Paste the code into your theme’s functions.php file and use it in any content on your website.

    Example:

    [mycred_buy_points_link balance="10" url="https://mysite.com/buypoints/"]

    This will show a link called “Buy More Points” pointing to the URL you gave.

    You can adjust the title that is shown like this:

    [mycred_buy_points_link balance="10" url="https://mysite.com/buypoints/" title="Buy Credits"]

    It also supports multiple point types so the link is only shown when a users balance of a certain point type is low. Example using a point type called “mytype”.

    [mycred_buy_points_link balance="10" url="https://mysite.com/buytype/" ctype="mytype"]

    If you are not using multiple point types then there is no need to use this.

    Note that if myCRED is disabled, the current user viewing this shortcode is excluded from using myCRED or if the user has more points then you set in the shortcode, the shortcode will return nothing.

Viewing 1 replies (of 1 total)
  • The topic ‘Check user balance’ is closed to new replies.