The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
AI Assistant
How to look at cust...
 
Notifications
Clear all

[Solved] How to look at custom field data, and do something based on that?

2 Posts
1 Users
0 Reactions
1,847 Views
(@cortega)
Posts: 9
Active Member
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
 
[#1412]

Hello!

 

Trying to see if there is a hook where I can check the custom fields I added. I added one, and I see it gets posted into wp_commentsmeta, with the information is present. Is there a hook where I can do this ?

My goal :

{

     isItTrue = checkCustomField();

     if(isItTrue === True){

            doSomething();

     };

}

 

Any help appreciated! Thank you.


 
Posted : 07/12/2020 8:28 pm
(@cortega)
Posts: 9
Active Member
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
 

Found what I needed!

https://wpdiscuz.com/docs/codex/actions/wpdiscuz_before_save_commentmeta-2/

I was able to use this and update_comment hook to make customers anonymous, when they select a box, and enter a custom email for each post. If anyone is trying that, this is the route to go. 

thanks for the help! 


 
Posted : 08/12/2020 3:34 am