get_title(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
'wp-mail-smtp[general][do_not_send]',
'id' => 'wp-mail-smtp-setting-do_not_send',
'value' => 'true',
'checked' => (bool) $options->get( 'general', 'do_not_send' ),
'disabled' => $options->is_const_defined( 'general', 'do_not_send' ),
]
);
?>
is_const_defined( 'general', 'do_not_send' ) ) {
echo $options->get_const_set_message( 'WPMS_DO_NOT_SEND' ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
} else {
printf(
wp_kses( /* translators: %s - The URL to the constants support article. */
__( 'Please read this support article if you want to enable this option using constants.', 'wp-mail-smtp' ),
[
'a' => [
'href' => [],
'target' => [],
'rel' => [],
],
]
),
// phpcs:ignore WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound
esc_url(
wp_mail_smtp()->get_utm_url(
'https://wpmailsmtp.com/docs/how-to-secure-smtp-settings-by-using-constants/',
[
'medium' => 'misc-settings',
'content' => 'Do not send setting description - support article',
]
)
)
);
}
?>
is_pro() ) {
?>
get_admin()->is_error_delivery_notice_enabled();
?>
'wp-mail-smtp[general][email_delivery_errors_hidden]',
'id' => 'wp-mail-smtp-setting-email_delivery_errors_hidden',
'value' => 'true',
'checked' => $is_hard_disabled || (bool) $options->get( 'general', 'email_delivery_errors_hidden' ),
'disabled' => $is_hard_disabled,
]
);
?>
wp_mail_smtp_admin_is_error_delivery_notice_enabled'
);
?>
This is not recommended and should only be done for staging or development sites.', 'wp-mail-smtp' ),
[
'strong' => [],
]
);
?>
'wp-mail-smtp[general][' . SummaryReportEmail::SETTINGS_SLUG . ']',
'id' => 'wp-mail-smtp-setting-summary-report-email',
'value' => 'true',
'checked' => (bool) SummaryReportEmail::is_disabled(),
'disabled' => (
$options->is_const_defined( 'general', SummaryReportEmail::SETTINGS_SLUG ) ||
( wp_mail_smtp()->is_pro() && empty( Options::init()->get( 'logs', 'enabled' ) ) )
),
]
);
?>
is_pro() && empty( Options::init()->get( 'logs', 'enabled' ) ) ) {
echo wp_kses(
sprintf( /* translators: %s - Email Log settings url. */
__( 'Please enable Email Logging first, before this setting can be configured.', 'wp-mail-smtp' ),
esc_url( wp_mail_smtp()->get_admin()->get_admin_page_url( Area::SLUG . '&tab=logs' ) )
),
[
'a' => [
'href' => [],
],
]
);
} else {
printf(
'%2$s',
esc_url( SummaryReportEmail::get_preview_link() ),
esc_html__( 'View Email Summary Example', 'wp-mail-smtp' )
);
}
if ( $options->is_const_defined( 'general', SummaryReportEmail::SETTINGS_SLUG ) ) {
echo '
' . $options->get_const_set_message( 'WPMS_SUMMARY_REPORT_EMAIL_DISABLED' ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
?>
'wp-mail-smtp[general][' . OptimizedEmailSending::SETTINGS_SLUG . ']',
'id' => 'wp-mail-smtp-setting-optimize-email-sending',
'value' => 'true',
'checked' => (bool) OptimizedEmailSending::is_enabled(),
]
);
?>
Learn More', 'wp-mail-smtp' ),
[
'a' => [
'href' => [],
'rel' => [],
'target' => [],
],
]
),
esc_url(
wp_mail_smtp()->get_utm_url(
'https://wpmailsmtp.com/docs/a-complete-guide-to-miscellaneous-settings/#optimize-email-sending',
[
'medium' => 'misc-settings',
'content' => 'Optimize Email Sending - support article',
]
)
)
);
?>
display_rate_limit_settings(); ?>