Please example of callbacks
-
Hello!
First of all thanks a lot for the great plugin!Could you please show an example of using callbacks?
I’m interested to check some comment custom field before posting comment to database. And if something is wrong then to show my error message.I tried to assign ‘OnBeforeSubmitComment‘ callback to check_my_custom_field.
Then in function.php declare
function check_my_custom_field() { return true;//false - all without success }
When I post a comment then I see a message “Posting your comment. Please wait”for a few minutes.
It would be nice if you add some actions to your plugin in future.
Please help.
Thanks in advance!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Please example of callbacks’ is closed to new replies.