'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() ) {
$is_log_blocked_emails_const_defined = $options->is_const_defined( 'logs', 'log_blocked_emails' );
?>
'wp-mail-smtp[logs][log_blocked_emails]',
'id' => 'wp-mail-smtp-setting-log_blocked_emails',
'value' => 'true',
'label' => esc_html__( 'Log Blocked Emails', 'wp-mail-smtp' ),
'checked' => (bool) $options->get( 'logs', 'log_blocked_emails' ),
'disabled' => $is_log_blocked_emails_const_defined,
]
);
?>
get_const_set_message( 'WPMS_LOG_BLOCKED_EMAILS' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>