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. Its affordable pricing and simple setup make it the perfect choice for WordPress sites. SendLayer will authenticate your outgoing emails to make sure they always hit customers’ inboxes, and it has detailed documentation to help you authorize your domain.

You can send hundreds of emails for free when you sign up for a trial.

To get started, read our SendLayer documentation.', 'wp-mail-smtp' ), [ 'strong' => [], 'br' => [], 'a' => [ 'href' => [], 'rel' => [], 'target' => [], ], ] ), // 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' ) ) ); $mailer_options = $connection->get_options()->get_group( self::SLUG ); if ( empty( $mailer_options['api_key'] ) ) { $description .= sprintf( '

%2$s

', // phpcs:ignore WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound esc_url( wp_mail_smtp()->get_utm_url( 'https://sendlayer.com/wp-mail-smtp/', [ 'source' => 'wpmailsmtpplugin', 'medium' => 'WordPress', 'content' => 'Plugin Settings - Mailer Button' ] ) ), esc_html__( 'Get Started with SendLayer', 'wp-mail-smtp' ) ); } 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, WordPress.Security.NonceVerification.Recommended $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' ] ); ?>
connection_options->is_const_defined( $this->get_slug(), 'api_key' ) ) : ?> display_const_set_message( 'WPMS_SENDLAYER_API_KEY' ); ?> get_slug(); $value = $this->connection_options->get( $this->get_slug(), 'api_key' ); UI::hidden_password_field( [ 'name' => "wp-mail-smtp[{$slug}][api_key]", 'id' => "wp-mail-smtp-setting-{$slug}-api_key", 'value' => $value, 'clear_text' => esc_html__( 'Remove API Key', 'wp-mail-smtp' ), ] ); ?>

' . esc_html__( 'Get API Key', 'wp-mail-smtp' ) . '' ); ?>