Possible to add filter based on if statement? (email – wordpress@)
I understand filters on a basic level. I can replace the from email option
However, is it possible to apply a filter in a functions.php or mu plugin when its conditional.
Ie, I want to allow plugins to give people the option on modifying the from address, and I only wish to replace the from of email@example.com if from == wordpress
Is that an option?
- The topic ‘Possible to add filter based on if statement? (email – wordpress@)’ is closed to new replies.