Community-driven plugin icon repository for use with MainWP filters. Contribute icons, customize your MainWP dashboard.
Find a file
Stingray82 5c41ea89bc Test
2025-08-05 22:01:45 +01:00
icons Added advanced-database-cleaner-pro.png 2025-08-05 21:49:53 +01:00
CONTRIBUTING.md Initial icon map and documentation added 2025-08-05 17:39:33 +01:00
icons-map.json Test 2025-08-05 22:01:45 +01:00
LICENSE Initial commit 2025-08-05 17:21:21 +01:00
README.md Added advanced-database-cleaner-pro.png 2025-08-05 21:49:53 +01:00

MainWP Plugin Icons

A community-driven icon library for WordPress plugins used in MainWP. This repository allows users to override plugin icons in their MainWP dashboard via custom filters.

How to Use

You can integrate this repo into your WordPress installation using the following JSON map:

https://raw.githubusercontent.com/stingray82/mainwp-plugin-icons/main/icons-map.json

Replace yourusername with your actual GitHub username or organization name.

Example PHP Integration

add_filter('mainwp_before_save_cached_icons', function ($cached_icons, $icon, $slug, $type, $custom_icon, $noexp) {
    $json_url = 'https://raw.githubusercontent.com/stingray82/mainwp-plugin-icons/main/icons-map.json';
    $response = wp_remote_get($json_url);

    if (is_wp_error($response)) {
        return $cached_icons;
    }

    $icons_map = json_decode(wp_remote_retrieve_body($response), true);
    if (!is_array($icons_map)) {
        return $cached_icons;
    }

    foreach ($icons_map as $custom_slug => $custom_icon_url) {
        if (!isset($cached_icons[$custom_slug])) {
            $cached_icons[$custom_slug] = [
                'lasttime_cached' => time(),
                'path_custom'     => '',
                'path'            => urlencode($custom_icon_url),
            ];
            
        }
    }

    return $cached_icons;
}, 10, 6);

Repository Structure

mainwp-plugin-icons/
│
├── icons/              ← Plugin icon images (.png, 64x64 or 128x128)
│   └── akismet.png
│
├── icons-map.json      ← JSON map of plugin slugs to icon URLs
├── README.md
└── CONTRIBUTING.md

All plugin logos and icons included in this repository are provided as-is for the purpose of improving the user experience in the MainWP dashboard.

  • The icons remain the copyright of their respective plugin authors or organizations.
  • No ownership or rights are claimed by this repository or its contributors.
  • If you are a plugin author and wish to have your icon added, updated, or removed, please open an issue or submit a pull request.

This repository is community-driven and intended solely for personal and non-commercial customization.

Contribute

We welcome community contributions! Help us grow the icon collection by submitting icons for your favorite plugins. See CONTRIBUTING.md for full guidelines.