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

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

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

2 Posts
1 Users
0 Reactions
1,231 Views
Posts: 9
Topic starter
(@cortega)
Active Member
Joined: 5 years ago

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.

1 Reply
Posts: 9
Topic starter
(@cortega)
Active Member
Joined: 5 years ago

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! 

Share: