Badge link?

front page Forums Community Badge link?

This topic contains 6 replies, has 4 voices, and was last updated by Avatar Sevan 5 years, 2 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #14417
    Avatar
    Ken

    Hi,
    I was just wondering if it is possible to have the badge in someone’s profile link to a page that would give a description of the badge?

    #14445
    Avatar
    WPExperts

    Right now there is no easy way to do this. But the good news is that in 1.6.3 you will be able to do this via a simple code snippet:

    add_filter( 'mycred_my_badge', 'mycred_pro_link_my_badges', 10, 2 );
    function mycred_pro_link_my_badges( $badge_html, $badge_id ) {
    
    	return '<a href="' . get_permalink( $badge_id ) . '">' . $badge_html . '</a>';
    
    }
    
    #14449
    Avatar
    Ken

    Thanks Gabriel,

    Any estimate on the release of 1.6.3?

    #14450
    Avatar
    WPExperts

    Next Monday. But you can already now download it if you want to beta test.

    #14830
    Avatar
    Martin

    Is there any news from 1.6.3 ?

    #14831
    Avatar
    WPExperts

    Hey. Sorry I received a few last minute bug reports I wanted to sort out before launching then easter showed up. I will be releasing 1.6.3 tomorrow (Wednesday).

    #15030
    Avatar
    Sevan

    Good day, since 1.6.3 is now out, what is the snippet to display the description? Thank you

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

11