get_label(); } /** * Tab content. * * @since 2.9.0 */ public function display() { ?>

WPForms, the largest WordPress resource site, WPBeginner, the most popular lead-generation software, OptinMonster, the best WordPress analytics plugin, MonsterInsights, and more.', 'wp-mail-smtp' ), [ 'a' => [ 'href' => [], 'rel' => [], 'target' => [], ], ] ), 'https://wpforms.com/?utm_source=wpmailsmtpplugin&utm_medium=pluginaboutpage&utm_campaign=aboutwpmailsmtp', 'https://www.wpbeginner.com/?utm_source=wpmailsmtpplugin&utm_medium=pluginaboutpage&utm_campaign=aboutwpmailsmtp', 'https://optinmonster.com/?utm_source=wpmailsmtpplugin&utm_medium=pluginaboutpage&utm_campaign=aboutwpmailsmtp', 'https://www.monsterinsights.com/?utm_source=wpmailsmtpplugin&utm_medium=pluginaboutpage&utm_campaign=aboutwpmailsmtp', // phpcs:ignore WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound esc_url( wp_mail_smtp()->get_utm_url( 'https://awesomemotive.com/', [ 'medium' => 'pluginaboutpage', 'content' => 'aboutwpmailsmtp' ] ) ) ); ?>

<?php esc_attr_e( 'The WPForms Team photo', 'wp-mail-smtp' ); ?>
display_plugins(); } /** * Display the plugins section. * * @since 2.9.0 */ protected function display_plugins() { ?>
$plugin ) : $is_url_external = false; $data = $this->get_about_plugins_data( $plugin ); if ( isset( $plugin['pro'] ) && array_key_exists( $plugin['pro']['path'], get_plugins() ) ) { $is_url_external = true; $plugin = $plugin['pro']; $data = array_merge( $data, $this->get_about_plugins_data( $plugin, true ) ); } ?>
<?php esc_attr_e( 'Plugin icon', 'wp-mail-smtp' ); ?>

' . esc_html( $data['status_text'] ) . '' ); ?>
[ 'icon' => 'plugin-om.png', 'desc' => esc_html__( 'Instantly get more subscribers, leads, and sales with the #1 conversion optimization toolkit. Create high converting popups, announcement bars, spin a wheel, and more with smart targeting and personalization.', 'wp-mail-smtp' ), ], 'wpforms' => [ 'icon' => 'plugin-wpf.png', 'desc' => esc_html__( 'The best drag & drop WordPress form builder. Easily create beautiful contact forms, surveys, payment forms, and more with our 600+ form templates. Trusted by over 5 million websites as the best forms plugin.', 'wp-mail-smtp' ), ], 'monsterinsights' => [ 'icon' => 'plugin-mi.png', 'desc' => esc_html__( 'The leading WordPress analytics plugin that shows you how people find and use your website, so you can make data driven decisions to grow your business. Properly set up Google Analytics without writing code.', 'wp-mail-smtp' ), ], 'aioseo' => [ 'icon' => 'plugin-aioseo.png', 'desc' => esc_html__( 'The original WordPress SEO plugin and toolkit that improves your website’s search rankings. Comes with all the SEO features like Local SEO, WooCommerce SEO, sitemaps, SEO optimizer, schema, and more.', 'wp-mail-smtp' ), ], 'seedprod' => [ 'icon' => 'plugin-seedprod.png', 'desc' => esc_html__( 'The fastest drag & drop landing page builder for WordPress. Create custom landing pages without writing code, connect them with your CRM, collect subscribers, and grow your audience. Trusted by 1 million sites.', 'wp-mail-smtp' ), ], 'rafflepress' => [ 'icon' => 'plugin-rp.png', 'desc' => esc_html__( 'Turn your website visitors into brand ambassadors! Easily grow your email list, website traffic, and social media followers with the most powerful giveaways & contests plugin for WordPress.', 'wp-mail-smtp' ), ], 'pushengage' => [ 'icon' => 'plugin-pushengage.png', 'desc' => esc_html__( 'Connect with your visitors after they leave your website with the leading web push notification software. Over 10,000+ businesses worldwide use PushEngage to send 15 billion notifications each month.', 'wp-mail-smtp' ), ], 'smash-balloon-instagram-feeds' => [ 'icon' => 'plugin-smash-balloon-instagram-feeds.png', 'desc' => esc_html__( 'Easily display Instagram content on your WordPress site without writing any code. Comes with multiple templates, ability to show content from multiple accounts, hashtags, and more. Trusted by 1 million websites.', 'wp-mail-smtp' ), ], 'smash-balloon-facebook-feeds' => [ 'icon' => 'plugin-smash-balloon-facebook-feeds.png', 'desc' => esc_html__( 'Easily display Facebook content on your WordPress site without writing any code. Comes with multiple templates, ability to embed albums, group content, reviews, live videos, comments, and reactions.', 'wp-mail-smtp' ), ], 'smash-balloon-youtube-feeds' => [ 'icon' => 'plugin-smash-balloon-youtube-feeds.png', 'desc' => esc_html__( 'Easily display YouTube videos on your WordPress site without writing any code. Comes with multiple layouts, ability to embed live streams, video filtering, ability to combine multiple channel videos, and more.', 'wp-mail-smtp' ), ], 'smash-balloon-twitter-feeds' => [ 'icon' => 'plugin-smash-balloon-twitter-feeds.png', 'desc' => esc_html__( 'Easily display Twitter content in WordPress without writing any code. Comes with multiple layouts, ability to combine multiple Twitter feeds, Twitter card support, tweet moderation, and more.', 'wp-mail-smtp' ), ], 'trustpulse' => [ 'icon' => 'plugin-trustpulse.png', 'desc' => esc_html__( 'Boost your sales and conversions by up to 15% with real-time social proof notifications. TrustPulse helps you show live user activity and purchases to help convince other users to purchase.', 'wp-mail-smtp' ), ], 'searchwp' => [ 'icon' => 'searchwp.png', 'desc' => esc_html__( 'The most advanced WordPress search plugin. Customize your WordPress search algorithm, reorder search results, track search metrics, and everything you need to leverage search to grow your business.', 'wp-mail-smtp' ), ], 'affiliatewp' => [ 'icon' => 'affiliatewp.png', 'desc' => esc_html__( 'The #1 affiliate management plugin for WordPress. Easily create an affiliate program for your eCommerce store or membership site within minutes and start growing your sales with the power of referral marketing.', 'wp-mail-smtp' ), ], 'wp-simple-pay' => [ 'icon' => 'wp-simple-pay.png', 'desc' => esc_html__( 'The #1 Stripe payments plugin for WordPress. Start accepting one-time and recurring payments on your WordPress site without setting up a shopping cart. No code required.', 'wp-mail-smtp' ), ], 'easy-digital-downloads' => [ 'icon' => 'edd.png', 'desc' => esc_html__( 'The best WordPress eCommerce plugin for selling digital downloads. Start selling eBooks, software, music, digital art, and more within minutes. Accept payments, manage subscriptions, advanced access control, and more.', 'wp-mail-smtp' ), ], 'sugar-calendar' => [ 'icon' => 'sugar-calendar.png', 'desc' => esc_html__( 'A simple & powerful event calendar plugin for WordPress that comes with all the event management features including payments, scheduling, timezones, ticketing, recurring events, and more.', 'wp-mail-smtp' ), ], 'wp-charitable' => [ 'icon' => 'plugin-charitable.png', 'desc' => esc_html__( 'Top-rated WordPress donation and fundraising plugin. Over 10,000+ non-profit organizations and website owners use Charitable to create fundraising campaigns and raise more money online.', 'wp-mail-smtp' ), ], 'wpcode' => [ 'icon' => 'plugin-wpcode.png', 'name' => esc_html__( 'WPCode Lite', 'wp-mail-smtp' ), 'desc' => esc_html__( 'Future proof your WordPress customizations with the most popular code snippet management plugin for WordPress. Trusted by over 1,500,000+ websites for easily adding code to WordPress right from the admin area.', 'wp-mail-smtp' ), ], 'duplicator' => [ 'icon' => 'duplicator-icon-large.png', 'desc' => esc_html__( 'Leading WordPress backup & site migration plugin. Over 1,500,000+ smart website owners use Duplicator to make reliable and secure WordPress backups to protect their websites. It also makes website migration really easy.', 'wp-mail-smtp' ), ], 'activelayer' => [ 'icon' => 'icon-activelayer.svg', 'desc' => esc_html__( 'Smarter spam protection for WordPress. Catch spam in milliseconds with AI, invisible to your real visitors.', 'wp-mail-smtp' ), ], 'wpconsent' => [ 'icon' => 'icon-wpconsent.svg', 'desc' => esc_html__( 'Stay GDPR & privacy compliant. Add a cookie consent banner to your site and meet privacy laws in minutes.', 'wp-mail-smtp' ), ], 'wpvibe' => [ 'icon' => 'plugin-vibe-ai.png', 'name' => esc_html__( 'Vibe AI', 'wp-mail-smtp' ), 'desc' => esc_html__( 'AI-powered tools for WordPress. Work faster and smarter with automation built for your WordPress workflow.', 'wp-mail-smtp' ), ], 'universally' => [ 'icon' => 'icon-universally.svg', 'desc' => esc_html__( 'Make your WordPress site accessible to everyone. Automatic accessibility fixes and a visitor widget, no coding required.', 'wp-mail-smtp' ), ], ]; } /** * The AM plugins we propose to install, in display order. * * @since 2.9.0 * * @return array */ private static function get_am_plugins() { $catalog = new Catalog(); $plugins = []; foreach ( self::get_am_plugins_copy() as $slug => $copy ) { $plugin = $catalog->get( $slug ); if ( $plugin === null ) { continue; } $icon = wp_mail_smtp()->assets_url . '/images/about/' . $copy['icon']; $plugins[ $slug ] = [ 'path' => $plugin->get_basename(), 'icon' => $icon, 'name' => $copy['name'] ?? $plugin->get_name(), 'desc' => $copy['desc'], 'url' => $plugin->get_download_url() !== '' ? $plugin->get_download_url() : $plugin->get_upgrade_url(), ]; if ( $plugin->get_upgrade_url() === '' ) { continue; } $plugins[ $slug ]['pro'] = [ 'path' => $plugin->get_basename_pro(), 'icon' => isset( $copy['icon_pro'] ) ? wp_mail_smtp()->assets_url . '/images/about/' . $copy['icon_pro'] : $icon, 'name' => $copy['name_pro'] ?? $plugin->get_name_pro(), 'desc' => $copy['desc_pro'] ?? $copy['desc'], 'url' => $plugin->get_upgrade_url(), ]; } return $plugins; } /** * Active the given plugin. * * @since 2.9.0 */ public static function ajax_plugin_activate() { if ( empty( $_POST['plugin'] ) ) { wp_send_json_error( esc_html__( 'No plugin was specified.', 'wp-mail-smtp' ) ); } // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Area::process_ajax() verifies the nonce before dispatching here. $basename = sanitize_text_field( wp_unslash( $_POST['plugin'] ) ); $plugin = ( new Catalog() )->get_by_basename( $basename ); if ( $plugin === null ) { wp_send_json_error( esc_html__( 'This plugin is not allowed.', 'wp-mail-smtp' ) ); } $permission = new InstallPermission(); $permitted = $permission->check( $plugin ); if ( is_wp_error( $permitted ) ) { wp_send_json_error( $permission->get_refusal_payload( $permitted ) ); } $activated = ( new Installer() )->activate( $plugin ); if ( is_wp_error( $activated ) ) { wp_send_json_error( $activated->get_error_message() ); } wp_send_json_success( esc_html__( 'Plugin activated.', 'wp-mail-smtp' ) ); } /** * Install & activate the given plugin. * * @since 2.9.0 */ public static function ajax_plugin_install() { if ( empty( $_POST['plugin'] ) ) { wp_send_json_error( esc_html__( 'No plugin was specified.', 'wp-mail-smtp' ) ); } $plugin_url = esc_url_raw( wp_unslash( $_POST['plugin'] ) ); $plugin = ( new Catalog() )->get_by_download_url( $plugin_url ); if ( $plugin === null ) { wp_send_json_error( esc_html__( 'This plugin is not allowed.', 'wp-mail-smtp' ) ); } $permission = new InstallPermission(); $permitted = $permission->check( $plugin ); if ( is_wp_error( $permitted ) ) { wp_send_json_error( $permission->get_refusal_payload( $permitted ) ); } // Avoids undefined notices from the file operations the installer runs. set_current_screen( 'wp-mail-smtp_page_wp-mail-smtp-about' ); $redirect_url = esc_url_raw( add_query_arg( [ 'page' => 'wp-mail-smtp-about' ], admin_url( 'admin.php' ) ) ); $result = ( new Installer() )->install( $plugin, $redirect_url ); if ( is_wp_error( $result ) ) { wp_send_json_error( $result->get_error_message() ); } if ( $result['basename'] === 'wpforms-lite/wpforms.php' ) { add_option( 'wpforms_installation_source', 'wp-mail-smtp-about-us' ); } wp_send_json_success( [ 'msg' => $result['activated'] ? esc_html__( 'Plugin installed & activated.', 'wp-mail-smtp' ) : esc_html__( 'Plugin installed.', 'wp-mail-smtp' ), 'is_activated' => $result['activated'], 'basename' => $result['basename'], ] ); } }