get_label(); } /** * Tab content. * * @since 2.9.0 */ public function display() { $license = wp_mail_smtp()->get_license_type(); ?>

get_license_features() as $slug => $name ) { $current = $this->get_license_data( $slug, $license ); $pro = $this->get_license_data( $slug, 'pro' ); ?>

', $current['text'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>

', $pro['text'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>

%s off regular price, automatically applied at checkout.', 'wp-mail-smtp' ), [ 'span' => [ 'class' => [], ], ] ), '$50' ); ?>

esc_html__( 'Email Log', 'wp-mail-smtp' ), 'control' => esc_html__( 'Email Controls', 'wp-mail-smtp' ), 'mailers' => esc_html__( 'Mailer Options', 'wp-mail-smtp' ), 'multisite' => esc_html__( 'WordPress Multisite', 'wp-mail-smtp' ), 'support' => esc_html__( 'Customer Support', 'wp-mail-smtp' ), ]; } /** * Get the array of data that compared the license data. * * @since 2.9.0 * * @param string $feature Feature name. * @param string $license License type to get data for. * * @return array|false */ private function get_license_data( $feature, $license ) { $data = [ 'log' => [ 'lite' => [ 'status' => 'none', 'text' => [ '' . esc_html__( 'Emails are not logged', 'wp-mail-smtp' ) . '', ], ], 'pro' => [ 'status' => 'full', 'text' => [ '' . esc_html__( 'Access to all Email Logging options right inside WordPress', 'wp-mail-smtp' ) . '', ], ], ], 'control' => [ 'lite' => [ 'status' => 'none', 'text' => [ '' . esc_html__( 'No controls over whether default WordPress emails are sent', 'wp-mail-smtp' ) . '', ], ], 'pro' => [ 'status' => 'full', 'text' => [ '' . esc_html__( 'Complete Email Controls management for most default WordPress emails', 'wp-mail-smtp' ) . '', ], ], ], 'mailers' => [ 'lite' => [ 'status' => 'none', 'text' => [ '' . esc_html__( 'Limited Mailers', 'wp-mail-smtp' ) . '
' . esc_html__( 'Access is limited to standard mailer options only', 'wp-mail-smtp' ), ], ], 'pro' => [ 'status' => 'full', 'text' => [ '' . esc_html__( 'Additional Mailer Options', 'wp-mail-smtp' ) . '
' . esc_html__( 'Microsoft Outlook (with Office365 support), Amazon SES and Zoho Mail', 'wp-mail-smtp' ), ], ], ], 'multisite' => [ 'lite' => [ 'status' => 'none', 'text' => [ '' . esc_html__( 'No Global Network Settings', 'wp-mail-smtp' ) . '', ], ], 'pro' => [ 'status' => 'full', 'text' => [ '' . esc_html__( 'All Global Network Settings', 'wp-mail-smtp' ) . '
' . esc_html__( 'Optionally configure settings at the network level or manage separately for each subsite', 'wp-mail-smtp' ), ], ], ], 'support' => [ 'lite' => [ 'status' => 'none', 'text' => [ '' . esc_html__( 'Limited Support', 'wp-mail-smtp' ) . '', ], ], 'pro' => [ 'status' => 'full', 'text' => [ '' . esc_html__( 'Priority Support', 'wp-mail-smtp' ) . '', ], ], ], ]; // Wrong feature? if ( ! isset( $data[ $feature ] ) ) { return false; } // Wrong license type? if ( ! isset( $data[ $feature ][ $license ] ) ) { return false; } return $data[ $feature ][ $license ]; } }