How can I include custom field to actual notification or email message?
Please clarify a bit what kind of email you mean.
In case you want to say thank you! 🙂 We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.
I mean about actual notification sent to particular user. I'm using WpDiscuz for custom fields.
For example UserA posts comment "@UserB test" and choses IT department (custom dropdown field).
A mail notification has been sent to UserB's email address. As a result, the actual content of the notification displays as "test" without including the custom field "IT Department".
Is there any way to show custom dropdown fields in that message that was sent to UserB?
I'm going to ask the developers if there is a solution we can provide you. I'll update this topic once I get some news for you.
In case you want to say thank you! 🙂 We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.
Hi @asti Maybe you can help me with alternative solution.
How can I copy value from dropdown once I select it to comment area as text?
Maybe you can show me code on how to copy dropdown value to comment area once I select it? For example if I select IT department I want it to appear in comment text area like: Comment section( "IT Department:"...comment ...)
The previous option is easier. We'll provide you a solution with the next version of the wpDiscuz plugin. Please wait for the next update. I'll update this topic with the new hook-code. So the mail will include the value of the custom field.
In case you want to say thank you! 🙂 We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.
2. Replace the red-marked "key" value with the custom field's meta key. This video shows how to get the meta key of the custom field:
3. The red-marked "Department" phrase also can be changed as you like.
In case you want to say thank you! 🙂 We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.
Hi @asti Thanks for all information and hook code. I test it on my wordpress but unfortunately it does not worked. I even tried to implement it on new installed wordpress with only WPDiscuz plugin but still it does not work as well.
Please can you check and test the code again if it is correct.
Note please I tried to implement it directly from functions.php and plugin that you suggested as well. I even tried to specify my own meta key value for custom field and put it into key field.
We've checked it several times, it works fine. Please see the screenshot:
In case you want to say thank you! 🙂 We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.
I'm also in similar situation and wondering perfect answer about it. I get lot of ans through peoples and internet but all are useless. But thanks to all you guys for giving best answer according this issue.