create the missing DB tables by clicking on this link. If this issue persists, please contact our support and provide the error message below:', 'wp-mail-smtp' ),
esc_url( $create_missing_tables_url ),
esc_url( $contact_support_url )
),
[
'a' => [
'href' => [],
'target' => [],
'rel' => [],
],
]
);
echo '
';
echo '' . esc_html( $error_message ) . '';
} else {
echo wp_kses(
sprintf( /* translators: %1$s - create missing tables link; %2$s - contact support link. */
__( 'WP Mail SMTP is using custom database tables for some of its features. In order to work properly, the custom tables should be created, and it seems they are missing. Please try to create the missing DB tables by clicking on this link. If this issue persists, please contact our support.', 'wp-mail-smtp' ),
esc_url( $create_missing_tables_url ),
esc_url( $contact_support_url )
),
[
'a' => [
'href' => [],
'target' => [],
'rel' => [],
],
]
);
}
?>
esc_html__( '1 Week', 'wp-mail-smtp' ),
2628000 => esc_html__( '1 Month', 'wp-mail-smtp' ),
7885000 => esc_html__( '3 Months', 'wp-mail-smtp' ),
15770000 => esc_html__( '6 Months', 'wp-mail-smtp' ),
31540000 => esc_html__( '1 Year', 'wp-mail-smtp' ),
];
$debug_event_retention_period = $this->options->get( 'debug_events', 'retention_period' );
// Check if defined value already in list and add it if not.
if (
! empty( $debug_event_retention_period ) &&
! isset( $options[ $debug_event_retention_period ] )
) {
$debug_event_retention_period_days = floor( $debug_event_retention_period / DAY_IN_SECONDS );
$options[ $debug_event_retention_period ] = sprintf(
/* translators: %d - days count. */
_n( '%d Day', '%d Days', $debug_event_retention_period_days, 'wp-mail-smtp' ),
$debug_event_retention_period_days
);
ksort( $options );
}
/**
* Filter debug events retention period options.
*
* @since 3.6.0
*
* @param array $options Debug Events retention period options.
* Option key in seconds.
*/
return apply_filters(
'wp_mail_smtp_admin_pages_debug_events_tab_get_debug_events_retention_period_options',
$options
);
}
}