Plugin Directory

Changeset 3454528


Ignore:
Timestamp:
02/05/2026 11:13:43 AM (2 months ago)
Author:
devforge
Message:

Version 1.0.4: Force visual hiding of update notifications.

Location:
devforge-admin-toolkit/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • devforge-admin-toolkit/trunk/devforge-admin-toolkit.php

    r3454516 r3454528  
    33 * Plugin Name: DevForge Admin Toolkit
    44 * Description: A comprehensive WordPress admin customization toolkit. Clean dashboard, role-based menus, maintenance mode, security tweaks, performance cleanup, and complete white-label control.
    5  * Version: 1.0.3
     5 * Version: 1.0.4
    66 * Author: DevForge
    77 * Author URI: https://profiles.wordpress.org/devforge/
     
    1818
    1919
    20 define( 'DEVFADTO_VERSION', '1.0.3' );
     20define( 'DEVFADTO_VERSION', '1.0.4' );
    2121define( 'DEVFADTO_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    2222define( 'DEVFADTO_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
  • devforge-admin-toolkit/trunk/includes/class-disable-features.php

    r3454516 r3454528  
    239239     * Disable WordPress Core Updates
    240240     */
     241    /**
     242     * Disable WordPress Core Updates
     243     */
    241244    private function disable_core_updates() {
    242245        // Disable core updates
     
    251254        add_filter( 'send_core_update_notification_email', '__return_false' );
    252255        add_filter( 'automatic_updates_send_debug_email', '__return_false' );
     256
     257        // Remove Core Update Nag (Visual)
     258        add_action( 'admin_head', function() {
     259            remove_action( 'admin_notices', 'update_nag', 3 );
     260            remove_action( 'admin_notices', 'maintenance_nag', 10 );
     261        }, 1 );
    253262    }
    254263
     
    263272        add_filter( 'auto_plugin_update_send_email', '__return_false' );
    264273        add_filter( 'send_plugin_update_notification_email', '__return_false' );
     274
     275        // Hide Plugin Updates (Visual)
     276        add_action( 'admin_head', function() {
     277            echo '<style>.plugin-update-tr, .update-message { display: none !important; }</style>';
     278        });
     279       
     280        // Hide update counts in menu
     281        add_filter( 'wp_get_update_data', function( $update_data, $titles ) {
     282            $update_data['counts']['plugins'] = 0;
     283            $update_data['counts']['total'] -= $update_data['counts']['plugins'];
     284            return $update_data;
     285        }, 10, 2 );
    265286    }
    266287
  • devforge-admin-toolkit/trunk/readme.txt

    r3454516 r3454528  
    44Requires at least: 5.0
    55Tested up to: 6.7
    6 Stable tag: 1.0.3
     6Stable tag: 1.0.4
    77Requires PHP: 7.2
    88License: GPLv2 or later
     
    9494== Changelog ==
    9595
     96= 1.0.4 - 2026-02-05 =
     97*   **Improvement:** Force UI hiding of update notifications when disabled.
     98*   **Fix:** Resolved visual nags remaining visible for administrators.
     99
    96100= 1.0.3 - 2026-02-05 =
    97101*   **New Feature:** Added option to disable WordPress Core automatic updates.
Note: See TracChangeset for help on using the changeset viewer.