If it’s undefined, that means you’re trying to run wp_mail()
before it is loaded. Whatever you’ve hooked it to is too early. Hook your process to a later action. Essentially, anything like plugins_loaded
or later.
If it’s undefined, that means you’re trying to run wp_mail()
before it is loaded. Whatever you’ve hooked it to is too early. Hook your process to a later action. Essentially, anything like plugins_loaded
or later.