<?php
namespace WPMailSMTP\Admin\Pages;
use WPMailSMTP\ConnectionInterface;
use WPMailSMTP\Providers\AuthAbstract;
/**
* Class AuthTab.
*
* @since 1.0.0
*/
class AuthTab {
/**
* @var string Slug of a tab.
*/
protected $slug = 'auth';
/**
* Launch mailer specific Auth logic.
*
* @since 1.0.0
*/
public function process_auth() {
if ( ! current_user_can( wp_mail_smtp()->get_capability_manage_global_options() ) ) {
return;
}
$connection = wp_mail_smtp()->get_connections_manager()->get_primary_connection();
/**
* Filters auth connection object.
*
* @since 3.7.0
*
* @param ConnectionInterface $connection The Connection object.
*/
$connection = apply_filters( 'wp_mail_smtp_admin_pages_auth_tab_process_auth_connection', $connection );
$auth = wp_mail_smtp()->get_providers()->get_auth( $connection->get_mailer_slug(), $connection );
if (
$auth &&
$auth instanceof AuthAbstract &&
method_exists( $auth, 'process' )
) {
$auth->process();
}
}
/**
* Return nothing, as we don't need this functionality.
*
* @since 1.0.0
*/
public function get_label() {
return '';
}
/**
* Return nothing, as we don't need this functionality.
*
* @since 1.0.0
*/
public function get_title() {
return '';
}
/**
* Do nothing, as we don't need this functionality.
*
* @since 1.0.0
*/
public function display() {
}
}
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| About.php | 2026-07-21 14:14 | 1.52 KB | 76129f60960:kunden | -xw-x----- | |
| AboutTab.php | 2026-07-21 14:14 | 34.18 KB | 76129f60960:kunden | -xw-x----- | |
| ActionSchedulerTab.php | 2026-07-21 14:14 | 3.13 KB | 76129f60960:kunden | -xw-x----- | |
| AdditionalConnectionsTab.php | 2026-07-21 14:14 | 5.31 KB | 76129f60960:kunden | -xw-x----- | |
| AiMcpTab.php | 2026-07-21 14:14 | 9.73 KB | 76129f60960:kunden | -xw-x----- | |
| AlertsTab.php | 2026-07-21 14:14 | 16.83 KB | 76129f60960:kunden | -xw-x----- | |
| AuthTab.php | 2026-07-21 14:14 | 1.38 KB | 76129f60960:kunden | -xw-x----- | |
| CodeSnippetsTab.php | 2026-07-21 14:14 | 15.71 KB | 76129f60960:kunden | -xw-x----- | |
| ControlTab.php | 2026-07-21 14:14 | 13.11 KB | 76129f60960:kunden | -xw-x----- | |
| DebugEventsTab.php | 2026-07-21 14:14 | 16.57 KB | 76129f60960:kunden | -xw-x----- | |
| EmailReports.php | 2026-07-21 14:14 | 714 B | 76129f60960:kunden | -xw-x----- | |
| EmailReportsTab.php | 2026-07-21 14:14 | 5.29 KB | 76129f60960:kunden | -xw-x----- | |
| ExportTab.php | 2026-07-21 14:14 | 5.59 KB | 76129f60960:kunden | -xw-x----- | |
| GetProTab.php | 2026-07-21 14:14 | 17.43 KB | 76129f60960:kunden | -xw-x----- | |
| Logs.php | 2026-07-21 14:14 | 1016 B | 76129f60960:kunden | -xw-x----- | |
| LogsTab.php | 2026-07-21 14:14 | 5.81 KB | 76129f60960:kunden | -xw-x----- | |
| MiscTab.php | 2026-07-21 14:14 | 18.46 KB | 76129f60960:kunden | -xw-x----- | |
| SettingsTab.php | 2026-07-21 14:14 | 14.18 KB | 76129f60960:kunden | -xw-x----- | |
| SmartRoutingTab.php | 2026-07-21 14:14 | 13.11 KB | 76129f60960:kunden | -xw-x----- | |
| TestTab.php | 2026-07-21 14:14 | 24.11 KB | 76129f60960:kunden | -xw-x----- | |
| Tools.php | 2026-07-21 14:14 | 687 B | 76129f60960:kunden | -xw-x----- | |