How Do I Add An Attachment To The Approval Email

Suppose You Approve A User And Want To Attach A Document To The Email. This Is Easy To Do Just By Adding A Filter To Core Wp_mail Function.

A Few Things To Note.

None Of The Code Will Execute If The Subject Has Been Modified From The Default. This Would Need To Be Modified To Match Part Of The Subject.

Point To The Correct Path Of The File You Would Like Attached. Since This Is An Array, You Can Add More Than One File.

Scroll to Top