MailerStrings final class
Minn\Mail\MailerStrings · public/minn/src/Minn/Mail/MailerStrings.php · 47 lines
The mailer's English messages, keyed as plugins look them up ("authenticate", "provide_address", ...): the base set, and the set WordPress's own mailer subclass loads, which words four of them differently. Captured from the reference into data/mailer-strings.json.
Uses 1
Constants and properties
| private | static array $sets |
Public
| static | base(): array# | The base mailer's messages. @return array<string, string> | |||
| static | wordpress(): array# | The messages WordPress's mailer subclass loads. @return array<string, string> | |||
| static | word(array $language, string $key): string# | One message by key from a loaded set (PHPMailer::lang): the key itself when the set lacks it; a failed SMTP connect points to the troubleshooting page.
|
Internals 1
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | set(string $name): array# | @return array<string, string> |
Nothing matches.