Created
July 3, 2017 23:20
-
-
Save gabrielmerovingi/0ec869ac05d5c636d2dc67aef027650b to your computer and use it in GitHub Desktop.
Display a custom message with a link when users run out of points and can not send further private messages in UserPro.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Customize UserPro Message | |
* @version 1.0 | |
*/ | |
function mycred_pro_custom_userpro_message( $message ) { | |
return '<div class="userpro-msg-notice">Insufficient funds. Please <a href="http://yourwebsite.com/buy-points/">top-up</a> your account to send further messages.</div>'; | |
} | |
add_filter( 'mycred_userpro_insufficient', 'mycred_pro_custom_userpro_message' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment