slug = sanitize_key( $params['slug'] ); $this->title = sanitize_text_field( $params['title'] ); if ( ! empty( $params['description'] ) ) { $this->description = wp_kses_post( $params['description'] ); } if ( ! empty( $params['notices'] ) ) { foreach ( (array) $params['notices'] as $key => $notice ) { $key = sanitize_key( $key ); if ( empty( $key ) ) { continue; } $notice = wp_kses( $notice, array( 'br' => true, 'strong' => true, 'em' => true, 'a' => array( 'href' => true, 'rel' => true, 'target' => true, ), ) ); if ( empty( $notice ) ) { continue; } $this->notices[ $key ] = $notice; } } if ( isset( $params['recommended'] ) ) { $this->recommended = (bool) $params['recommended']; } if ( isset( $params['disabled'] ) ) { $this->disabled = (bool) $params['disabled']; } if ( ! empty( $params['php'] ) ) { $this->php = sanitize_text_field( $params['php'] ); } if ( ! empty( $params['logo_url'] ) ) { $this->logo_url = esc_url_raw( $params['logo_url'] ); } $this->options = new Options(); } /** * @inheritdoc */ public function get_logo_url() { return apply_filters( 'wp_mail_smtp_providers_provider_get_logo_url', $this->logo_url, $this ); } /** * @inheritdoc */ public function get_slug() { return apply_filters( 'wp_mail_smtp_providers_provider_get_slug', $this->slug, $this ); } /** * @inheritdoc */ public function get_title() { return apply_filters( 'wp_mail_smtp_providers_provider_get_title', $this->title, $this ); } /** * @inheritdoc */ public function get_description() { return apply_filters( 'wp_mail_smtp_providers_provider_get_description', $this->description, $this ); } /** * Some mailers may display a notice above its options. * * @since 1.6.0 * * @param string $type * * @return string */ public function get_notice( $type ) { $type = sanitize_key( $type ); return apply_filters( 'wp_mail_smtp_providers_provider_get_notice', isset( $this->notices[ $type ] ) ? $this->notices[ $type ] : '', $this ); } /** * @inheritdoc */ public function get_php_version() { return apply_filters( 'wp_mail_smtp_providers_provider_get_php_version', $this->php, $this ); } /** * @inheritdoc */ public function display_options() { ?>
options->is_const_defined( $this->get_slug(), 'host' ) ? 'disabled' : ''; ?> id="wp-mail-smtp-setting-get_slug() ); ?>-host" spellcheck="false" />

options->is_const_defined( $this->get_slug(), 'port' ) ? 'disabled' : ''; ?> id="wp-mail-smtp-setting-get_slug() ); ?>-port" class="small-text" spellcheck="false" />

options->is_const_defined( $this->get_slug(), 'user' ) ? 'disabled' : ''; ?> id="wp-mail-smtp-setting-get_slug() ); ?>-user" spellcheck="false" autocomplete="new-password" />
options->is_const_defined( $this->get_slug(), 'pass' ) ) : ?> display_const_set_message( 'WPMS_SMTP_PASS' ); ?>

define( \'WPMS_SMTP_PASS\', \'your_old_password\' );' ); ?>
wp-config.php', 'WPMS_ON' ); ?>

						define( 'WPMS_ON', false );
					


recommended, $this ); } /** * Whether this mailer is disabled or not. * Used for displaying Pro mailers inside Lite plugin. * * @since 1.7.0 * * @return bool */ public function is_disabled() { return (bool) apply_filters( 'wp_mail_smtp_providers_provider_is_disabled', $this->disabled, $this ); } /** * Check whether we can use this provider based on the PHP version. * Valid for those, that use SDK. * * @since 1.0.0 * * @return bool */ public function is_php_correct() { return version_compare( phpversion(), $this->php, '>=' ); } /** * Display a helpful message to those users, that are using an outdated version of PHP, * which is not supported by the currently selected Provider. * * @since 1.0.0 */ protected function display_php_warning() { ?>
get_title() ), esc_html( $this->php ), esc_html( phpversion() ) ); ?>
WPBeginner\'s tutorial on how to set up SSL.', 'wp-mail-smtp' ), [ 'a' => [ 'href' => [], 'target' => [], ], ] ), esc_html( $this->get_title() ) ); ?>

' . esc_attr( $constant ) . '', 'wp-config.php' ); ?>