0

Regarding the code that is being inserted into the pluggable.php file: its a require statement that links to a php file that is used to overwrite the basic wp mail functionality.

Thanks in advance.

3
  • 2
    You don't. That's the answer. It's not supposed to be edited. What do you actually need to change? Commented Apr 19, 2022 at 13:54
  • As said in the description, we wanna overwrite the wp_mail function with our custom function, without needing to link the absolute path to the file that contains this function via the require statement in the pluggable.php, because it will be overwritten by the next wordpress update. Commented Apr 20, 2022 at 10:16
  • Well the point of the pluggable.php file is that you can just write a wp_mail function in your own theme or plugin and it will be used instead. This is actually explained at the top of the pluggable.php file. Have you tried that? Commented Apr 20, 2022 at 13:13

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.