langs = new class_fma_adv_lang(); add_action('fma__settings_tab_notifications_content', array($this, 'notification_callback')); // Free: Show AI Integration (Code Pilot) tab content as a PRO teaser add_action('fma__settings_tab_ai_content', array($this, 'ai_integration_callback')); // Hide Freemius Add-Ons menu using Freemius filter hook add_filter('fs_is_submenu_visible_file-manager-advanced', array($this, 'hide_freemius_addons_menu'), 10, 2); // Fallback: Remove Freemius Add-Ons menu if it still exists add_action('admin_menu', array($this, 'remove_freemius_addons_menu'), 999); } /** * Hide Freemius Add-Ons menu using Freemius filter hook * This is the proper way to hide menu items in Freemius */ public function hide_freemius_addons_menu($is_visible, $menu_id) { // Hide Add-Ons menu if ($menu_id === 'addons') { return false; } return $is_visible; } /** * Remove Freemius Add-Ons menu (fallback method) */ public function remove_freemius_addons_menu() { global $fma_fs, $submenu; // Remove Add-Ons submenu if it exists (check various possible slugs) $parent_slug = 'file_manager_advanced_ui'; $possible_slugs = array( 'file-manager-advanced-addons', 'file-manager-advanced-addons-network', 'file_manager_advanced-addons', 'file_manager_advanced-addons-network', ); foreach ($possible_slugs as $slug) { remove_submenu_page($parent_slug, $slug); } // Also remove by menu title if slug-based removal didn't work if (isset($submenu[$parent_slug])) { foreach ($submenu[$parent_slug] as $key => $item) { if (isset($item[0]) && (stripos($item[0], 'Add-On') !== false || stripos($item[0], 'Addon') !== false)) { unset($submenu[$parent_slug][$key]); } } } } /** * Notification Callback * @since 6.7.3 */ public function notification_callback() { if (!class_exists('AFMP\\Modules\\EmailNotification\\EmailNotification')) { echo '
|
Email address to send notification. | |
| | |
|
Subject of the email notification. | |
|
Message body of the email notification. You can use placeholders like {file_name}, {action} etc. Available placeholders:
|
Enter your Slack Webhook URL to receive notifications. Click here to get your webhook URL | |
Customize the message to be sent to Slack. You can use placeholders like {file_name}, {action}, etc. Available placeholders:
|
|
|
|
|---|---|
|
Enter a title which will be displayed on File Manager |
|
|
Enter your Dropbox App key, you will get your app key from Dropbox App Console |
|
|
Enter your Dropbox App secret, you will get your app secret from Dropbox App Console |
|
|
Copy this URL and paste it in your Dropbox App Console under Redirect URIs |
|
Enter a title which will be displayed on File Manager |
|
|
Enter your OneDrive Application (client) ID from your Azure AD app registration. |
|
|
Enter your OneDrive Client secret from your Azure AD app registration. |
|
|
Copy this URL and paste it in your Azure AD app registration under Redirect URIs. |
|
|
|
|---|---|
|
Enter a title which will be displayed on File Manager |
|
|
Enter your Google Drive App key, you will get your app key from Google Drive App Console |
|
|
Enter your Google Drive App secret, you will get your app secret from Google Drive App Console |
|
|
Copy this URL and paste it in your Google Drive App Console under JavaScripts Origins |
|
|
Copy this URL and paste it in your Google Drive App Console under Redirect URIs |
|
Enter your email which you use for your GitHub account |
|
|
Enter your GitHub username |
|
|
Enter GitHub Personal Access Token (PAT) for your account Click here to get Github PAT |
|
|
This field is not a required as a default directory is set, but this can be changed |
|
|
This field is not a required, and if left empty all configuration will apply to the whole repository |
|
|
|
|---|---|
|
Enter a title which will be displayed on File Manager |
|
|
Enter your Amazon S3 (AWS) App key. Learn how to get your credentials |
|
|
Enter your Amazon S3 (AWS) App secret. Learn how to get your credentials |
|
|
Enter the AWS region where your bucket is located (e.g. us-east-1) |
|
|
Enter the name of your Amazon S3 bucket |
|
|
Select the user roles allowed to access the AWS-connected file manager |
|
|
Enter a folder name to restrict access to that folder only. Leave blank to use the root directory (e.g. awsfolder) |
|
|
|
|---|---|
|
Enter a title which will be displayed on File Manager |
|
|
Upload your Google Cloud service account key file (.json format) |
|
|
Enter the name of your Google Cloud Storage bucket |
|
|
Select the user roles allowed to access the Google Cloud file manager |
|
|
Enter a subfolder path within your bucket. Leave blank to use the root directory Note: Folder paths and user role values are case-sensitive |
| ID Sort descending. | User Sort ascending. | Date & Time Sort descending. | Event Sort descending. | File Path Sort descending. | Type Sort descending. | IP Address Sort descending. | Actions |
|---|---|---|---|---|---|---|---|
| 6 | admin john@flywheel.local | May 02, 2025 12:40 pm | uploaded | D:\Local Sites\file-manager-advanced\app\public\wp-content\HeidiSQL.lnk | application/x-ms-shortcut | 127.0.0.1 | |
| 5 | admin john@flywheel.local | May 02, 2025 12:39 pm | pasted | D:\Local Sites\file-manager-advanced\app\public\wp-content\index.php | text/x-php | 127.0.0.1 | |
| 4 | admin john@flywheel.local | May 02, 2025 12:39 pm | deleted | D:\Local Sites\file-manager-advanced\app\public\wp-content\themes\deletedme.php | text/x-php | 127.0.0.1 | |
| 3 | admin john@flywheel.local | May 02, 2025 12:39 pm | updated | D:\Local Sites\file-manager-advanced\app\public\wp-content\themes\deletedme.php | text/x-php | 127.0.0.1 | |
| 2 | admin john@flywheel.local | May 02, 2025 12:39 pm | renamed | D:\Local Sites\file-manager-advanced\app\public\wp-content\themes\index copy 1.php | text/x-php | 127.0.0.1 | |
| 1 | admin john@flywheel.local | May 02, 2025 12:38 pm | duplicated | D:\Local Sites\file-manager-advanced\app\public\wp-content\themes\index copy 1.php | text/x-php | 127.0.0.1 | |
| ID Sort descending. | User Sort ascending. | Date & Time Sort descending. | Event Sort descending. | File Path Sort descending. | Type Sort descending. | IP Address Sort descending. | Actions |
' . $message . '
Advanced File manager shortcode addon update: You are using version ' . fmas_ver . ' we recommend you to update to latest version. If you did not receive update please download from my account page.
Advanced File manager shortcode addon update: You are using old version, we recommend you to update to latest version. If you did not receive update please download from my account page.