Email_Abstract::get_settings()
Get and filter email settings.
Return
(array)
Source
File: src/Tickets/Emails/Email_Abstract.php
public function get_settings(): array {
$settings = $this->get_settings_fields();
// @todo: Probably we want more data parsed, or maybe move the filters somewhere else as we're always gonna
/**
* Allow filtering the settings globally.
*
* @since 5.5.10
*
* @param array $settings The settings array.
* @param string $id Email ID.
* @param Email_Abstract $this The email object.
*/
$settings = apply_filters( 'tec_tickets_emails_settings', $settings, $this->id, $this );
/**
* Allow filtering the settings for this email.
*
* @since 5.5.10
*
* @param array $settings The settings array.
* @param string $id Email ID.
* @param Email_Abstract $this The email object.
*/
$settings = apply_filters( "tec_tickets_emails_{$this->slug}_settings", $settings, $this->id, $this );
return $settings;
}
Changelog
| Version | Description |
|---|---|
| 5.5.10 | Introduced. |