The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
AI Assistant
wp_discuz_after_com...
 
Notifications
Clear all

wp_discuz_after_comment_post

2 Posts
2 Users
0 Reactions
1,493 Views
Posts: 1
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@comments)
New Member
Joined: 5 years ago
[#1322]

Inside the wp_discuz_after_comment_post hook, how do I get the value of the meta field? 

add_action( 'wpdiscuz_after_comment_post', function ( $id, $comment ) {

// how to get value of custom meta field?

}, 10, 2 );

1 Reply
Asti
Posts: 8294
 Asti
Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@asti)
Illustrious Member
Joined: 8 years ago

Hi @comments,

you should use the WordPress native (core) get_comment_meta function. 


Reply