ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/www/site/wp-content/plugins/wp-mail-smtp/src/Admin
/
home
mhhtmff
www
site
wp-content
plugins
wp-mail-smtp
src
Admin
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
DebugEvents
-
chmod
Open
Rename
Delete
Pages
-
chmod
Open
Rename
Delete
AdminBarMenu.php
3.07 MB
chmod
View
DL
Edit
Rename
Delete
Area.php
45.62 MB
chmod
View
DL
Edit
Rename
Delete
ConnectionSettings.php
18.23 MB
chmod
View
DL
Edit
Rename
Delete
DashboardWidget.php
21.38 MB
chmod
View
DL
Edit
Rename
Delete
DomainChecker.php
4.48 MB
chmod
View
DL
Edit
Rename
Delete
Education.php
2.31 MB
chmod
View
DL
Edit
Rename
Delete
FlyoutMenu.php
4.12 MB
chmod
View
DL
Edit
Rename
Delete
Notifications.php
13.32 MB
chmod
View
DL
Edit
Rename
Delete
PageAbstract.php
3.1 MB
chmod
View
DL
Edit
Rename
Delete
PageInterface.php
551 B
chmod
View
DL
Edit
Rename
Delete
ParentPageAbstract.php
7.03 MB
chmod
View
DL
Edit
Rename
Delete
PluginsInstallSkin.php
1.09 MB
chmod
View
DL
Edit
Rename
Delete
PluginsInstallUpgrader.php
22.59 MB
chmod
View
DL
Edit
Rename
Delete
Review.php
6.92 MB
chmod
View
DL
Edit
Rename
Delete
SetupWizard.php
59.44 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/www/site/wp-content/plugins/wp-mail-smtp/src/Admin/AdminBarMenu.php
<?php namespace WPMailSMTP\Admin; use WPMailSMTP\Debug; use WPMailSMTP\Options; /** * WP Mail SMTP admin bar menu. * * @since 2.3.0 */ class AdminBarMenu { /** * Initialize class. * * @since 2.3.0 */ public function init() { $this->hooks(); } /** * Register hooks. * * @since 2.3.0 */ public function hooks() { add_action( 'wp_enqueue_scripts', [ $this, 'enqueues' ] ); add_action( 'admin_enqueue_scripts', [ $this, 'enqueues' ] ); add_action( 'admin_bar_menu', [ $this, 'register' ], 999 ); } /** * Check if current user has access to see admin bar menu. * * @since 2.3.0 * * @return bool */ public function has_access() { $access = false; if ( is_user_logged_in() && current_user_can( 'manage_options' ) ) { $access = true; } return apply_filters( 'wp_mail_smtp_admin_adminbarmenu_has_access', $access ); } /** * Check if new notifications are available. * * @since 2.3.0 * * @return bool */ public function has_notifications() { return wp_mail_smtp()->get_notifications()->get_count(); } /** * Enqueue styles. * * @since 2.3.0 */ public function enqueues() { if ( ! is_admin_bar_showing() ) { return; } if ( ! $this->has_access() ) { return; } wp_enqueue_style( 'wp-mail-smtp-admin-bar', wp_mail_smtp()->assets_url . '/css/admin-bar.min.css', [], WPMS_PLUGIN_VER ); } /** * Register and render admin menu bar. * * @since 2.3.0 * * @param \WP_Admin_Bar $wp_admin_bar WordPress Admin Bar object. */ public function register( \WP_Admin_Bar $wp_admin_bar ) { if ( ! $this->has_access() || ( ( empty( Debug::get_last() ) || (bool) Options::init()->get( 'general', 'email_delivery_errors_hidden' ) ) && empty( $this->has_notifications() ) ) ) { return; } $items = apply_filters( 'wp_mail_smtp_admin_adminbarmenu_register', [ 'main_menu', ], $wp_admin_bar ); foreach ( $items as $item ) { $this->{ $item }( $wp_admin_bar ); do_action( "wp_mail_smtp_admin_adminbarmenu_register_{$item}_after", $wp_admin_bar ); } } /** * Render primary top-level admin menu bar item. * * @since 2.3.0 * * @param \WP_Admin_Bar $wp_admin_bar WordPress Admin Bar object. */ public function main_menu( \WP_Admin_Bar $wp_admin_bar ) { if ( ! empty( Debug::get_last() ) && ! (bool) Options::init()->get( 'general', 'email_delivery_errors_hidden' ) ) { $indicator = ' <span class="wp-mail-smtp-admin-bar-menu-error">!</span>'; } elseif ( ! empty( $this->has_notifications() ) ) { $count = $this->has_notifications() < 10 ? $this->has_notifications() : '!'; $indicator = ' <div class="wp-mail-smtp-admin-bar-menu-notification-counter"><span>' . $count . '</span></div>'; } if ( ! isset( $indicator ) ) { return; } $wp_admin_bar->add_menu( [ 'id' => 'wp-mail-smtp-menu', 'title' => 'WP Mail SMTP' . $indicator, 'href' => apply_filters( 'wp_mail_smtp_admin_adminbarmenu_main_menu_href', wp_mail_smtp()->get_admin()->get_admin_page_url() ), ] ); } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply