Custom Message with myCRED Transfer

MyCred assigns different points to the users but it’s been sometime noticed that the users want to transfer points to another user and MyCred has a transfer form as default but to send a custom message with the transfer like a reason for transferring points which is not available with default form. Below snippets will help you to add custom message.

Also, see this if you don’t know how to allow the transfer of points with myCred.

Note: MyCred Plugin must be configured in order to use these snippets.

Let’s check how it is working…

Snippet 1: Display new fields to the form

This snippet will display a new field to the forum.

Copy to Clipboard

Snippet 2: Save field value

The snippet will save the custom message field value into the myCred database.

Copy to Clipboard

Snippet 3: Adds new column in myCred log

The snippet will add a new column in MyCred log where custom message will be displayed.

Copy to Clipboard

Snippet 4: Display message on myCred log

The snippet will display custom message on myCred log.

Copy to Clipboard

Conclusion

So, All you need to add this code snippet to your theme functions.php file to display custom message with myCred transfer.

Enjoy!

Farooq Abdullah

Web Developer

Farooq Abdullah is a professional Web Developer having more than 6 years of working experience in different PHP platforms especially WordPress. He is bachelors in computer science and he has also developed many plugins, add-ons and code snippets to facilitate others.

Sign up to our Newsletter

(We do not share your data with anybody, and only use it for its intended purpose)