slug = sanitize_key( $params['slug'] ); $this->title = sanitize_text_field( $params['title'] ); if ( ! empty( $params['description'] ) ) { $this->description = wp_kses( $params['description'], array( 'br' => array(), 'a' => array( 'href' => array(), 'rel' => array(), 'target' => array(), ), ) ); } 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 ); } /** * @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' ) ) : ?>

wp-config.php' ); ?>

						define( 'WPMS_ON', true );
						define( 'WPMS_SMTP_PASS', 'your_password' );
					
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. */ protected function display_php_warning() { ?>
title, $this->php, phpversion() ) ?>