get_connections_manager()->get_primary_connection(); } $description = sprintf( wp_kses( /* translators: %1$s - URL to sendlayer.com; %2$s - URL to SendLayer documentation on wpmailsmtp.com. */ __( 'SendLayer is our #1 recommended mailer. It offers affordable pricing and is easy to set up, which makes it an excellent option for WordPress sites. With SendLayer, your domain will be authenticated so all your outgoing emails reach your customers\' inboxes. Our detailed documentation will walk you through the entire process, start to finish. When you sign up for a free trial, you can send your first emails at no charge.', 'wp-mail-smtp' ), // phpcs:ignore WordPress.WP.I18n.NoHtmlWrappedStrings [ 'strong' => [], 'a' => [ 'href' => [], 'rel' => [], 'target' => [], ], 'span' => [ 'class' => [], ], ] ), // phpcs:ignore WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound, WordPress.Security.NonceVerification.Recommended esc_url( wp_mail_smtp()->get_utm_url( 'https://sendlayer.com/wp-mail-smtp/', [ 'source' => 'wpmailsmtpplugin', 'medium' => 'WordPress', 'content' => isset( $_GET['page'] ) && $_GET['page'] === 'wp-mail-smtp-setup-wizard' ? 'Setup Wizard - Mailer Description' : 'Plugin Settings - Mailer Description' ] ) ), // phpcs:ignore WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound esc_url( wp_mail_smtp()->get_utm_url( 'https://wpmailsmtp.com/docs/how-to-set-up-the-sendlayer-mailer-in-wp-mail-smtp/', 'SendLayer Documentation' ) ) ); parent::__construct( [ 'logo_url' => wp_mail_smtp()->assets_url . '/images/providers/sendlayer.svg', 'slug' => self::SLUG, 'title' => esc_html__( 'SendLayer', 'wp-mail-smtp' ), 'description' => $description, 'recommended' => true, 'supports' => [ 'from_email' => true, 'from_name' => true, 'return_path' => false, 'from_email_force' => true, 'from_name_force' => true, ], ], $connection ); } /** * Output the mailer provider options. * * @since 3.4.0 */ public function display_options() { // phpcs:ignore WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound $get_api_key_url = wp_mail_smtp()->get_utm_url( 'https://app.sendlayer.com/settings/api/', ['source' => 'wpmailsmtpplugin', 'medium' => 'WordPress', 'content' => 'Plugin Settings - Get API Key'] ); $is_const = $this->connection_options->is_const_defined( $this->get_slug(), 'api_key' ); $has_api_key = $is_const || ! empty( $this->connection_options->get( 'sendlayer', 'api_key' ) ); $is_quick_connect = (bool) $this->connection_options->get( 'sendlayer', 'quick_connect' ); $is_shared_domain = $is_quick_connect && (bool) $this->connection_options->get( 'sendlayer', 'is_shared_domain' ); $sender_domain = $is_shared_domain ? $this->connection_options->get( 'sendlayer', 'sender_domain' ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended $is_new_additional = ! $this->connection->is_primary() && isset( $_GET['mode'] ) && $_GET['mode'] === 'new'; ?>
SendLayer dashboard to change it here. Check our documentation on how to add a custom domain.', 'wp-mail-smtp' ), [ 'a' => [ 'href' => [], 'rel' => [], 'target' => [], ], ] ), // phpcs:ignore WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound esc_url( wp_mail_smtp()->get_utm_url( 'https://app.sendlayer.com/', [ 'source' => 'wpmailsmtpplugin', 'medium' => 'WordPress', 'content' => 'Plugin Settings - Domain Link' ] ) ), // phpcs:ignore WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound esc_url( wp_mail_smtp()->get_utm_url( 'https://sendlayer.com/docs/authorizing-your-domain/', [ 'source' => 'wpmailsmtpplugin', 'medium' => 'WordPress', 'content' => 'Plugin Settings - Custom Domain Documentation' ] ) ) ); ?>
' . esc_html__( 'Get API Key', 'wp-mail-smtp' ) . '' ); ?>