Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielmerovingi/0ec869ac05d5c636d2dc67aef027650b to your computer and use it in GitHub Desktop.
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.
/**
* 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