Add Filter or Action to execute custom code in function “Unspam”
-
Hello,
As some users that posted here, I need sometimes to send email when I change the status of Flamingo message as Not Spam.
The answer of “nikkofir” here is working well : https://www.ads-software.com/support/topic/does-flamingo-resend-messages-when-marked-as-not-spam/#post-12079451
But the problem is that when we update Flamingo, we lost our custom code, and It’s not easy to always remember to add the code again after upgrading the plugin.So I would like to ask if it’s possible for you to add a filter or action that can be executed here :
public function unspam() { if ( ! $this->spam ) { return; } $this->akismet_submit_ham(); $this->spam = false; <strong> EXECUTE THE ACTION OR FILTER CUSTOM FUNCTION FROM OUR THEME FUNCTIONS.PHP HERE WITH IN PARAMETERS THE $this VALUE (SO WE CAN GET DATAS FROM MESSAGE).</strong> return $this->save(); }
It would be wonderful if we can execute some custom code in a function in our functions.php theme file that can be executed in the function unspam. So we could execute the same code that “nikkofir” provide, but from our theme code, and if there is Flamingo Update the code will still be there.
Thank you for your anwser !
- The topic ‘Add Filter or Action to execute custom code in function “Unspam”’ is closed to new replies.