Plugin Directory

Changeset 3454516


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

Version 1.0.3: Disable Auto-Updates feature release

Location:
devforge-admin-toolkit
Files:
5 edited
8 copied

Legend:

Unmodified
Added
Removed
  • devforge-admin-toolkit/tags/1.0.3/devforge-admin-toolkit.php

    r3454367 r3454516  
    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.2
     5 * Version: 1.0.3
    66 * Author: DevForge
    77 * Author URI: https://profiles.wordpress.org/devforge/
     
    1818
    1919
    20 define( 'DEVFADTO_VERSION', '1.0.2' );
     20define( 'DEVFADTO_VERSION', '1.0.3' );
    2121define( 'DEVFADTO_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    2222define( 'DEVFADTO_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
     
    245245        'disable_rest_api' => 0,
    246246        'disable_gutenberg' => 0,
     247        'disable_core_updates' => 0,
     248        'disable_plugin_updates' => 0,
    247249        'remove_wp_version' => 0,
    248250        'hide_all_notices' => 0,
  • devforge-admin-toolkit/tags/1.0.3/includes/class-disable-features.php

    r3453693 r3454516  
    5757        if ( ! empty( $this->options['disable_gutenberg'] ) ) {
    5858            $this->disable_gutenberg();
     59        }
     60
     61        // Disable Core Updates
     62        if ( ! empty( $this->options['disable_core_updates'] ) ) {
     63            $this->disable_core_updates();
     64        }
     65
     66        // Disable Plugin Updates
     67        if ( ! empty( $this->options['disable_plugin_updates'] ) ) {
     68            $this->disable_plugin_updates();
    5969        }
    6070    }
     
    227237
    228238    /**
     239     * Disable WordPress Core Updates
     240     */
     241    private function disable_core_updates() {
     242        // Disable core updates
     243        add_filter( 'auto_update_core', '__return_false' );
     244        add_filter( 'allow_major_auto_core_updates', '__return_false' );
     245        add_filter( 'allow_minor_auto_core_updates', '__return_false' );
     246        add_filter( 'allow_dev_auto_core_updates', '__return_false' );
     247        add_filter( 'wp_auto_update_core', '__return_false' );
     248       
     249        // Disable core update emails
     250        add_filter( 'auto_core_update_send_email', '__return_false' );
     251        add_filter( 'send_core_update_notification_email', '__return_false' );
     252        add_filter( 'automatic_updates_send_debug_email', '__return_false' );
     253    }
     254
     255    /**
     256     * Disable Plugin Updates
     257     */
     258    private function disable_plugin_updates() {
     259        // Disable plugin updates
     260        add_filter( 'auto_update_plugin', '__return_false' );
     261       
     262        // Disable plugin update emails
     263        add_filter( 'auto_plugin_update_send_email', '__return_false' );
     264        add_filter( 'send_plugin_update_notification_email', '__return_false' );
     265    }
     266
     267    /**
    229268     * Get all available features to disable
    230269     */
     
    255294                'description' => __( 'Use classic editor instead of block editor', 'devforge-admin-toolkit' ),
    256295            ),
     296            'disable_core_updates' => array(
     297                'label' => __( 'Disable Core Auto Updates', 'devforge-admin-toolkit' ),
     298                'description' => __( 'Disable WordPress core background updates & related emails', 'devforge-admin-toolkit' ),
     299            ),
     300            'disable_plugin_updates' => array(
     301                'label' => __( 'Disable Plugin Auto Updates', 'devforge-admin-toolkit' ),
     302                'description' => __( 'Disable plugin background updates & related emails', 'devforge-admin-toolkit' ),
     303            ),
    257304            'remove_wp_version' => array(
    258305                'label' => __( 'Hide WordPress Version', 'devforge-admin-toolkit' ),
  • devforge-admin-toolkit/tags/1.0.3/includes/class-settings.php

    r3454357 r3454516  
    340340            'hide_admin_bar_in_admin', 'hide_admin_bar_frontend',
    341341            'disable_comments', 'disable_emojis', 'disable_rss', 'disable_xmlrpc',
    342             'disable_rest_api', 'disable_gutenberg', 'remove_wp_version',
     342            'disable_rest_api', 'disable_gutenberg', 'disable_core_updates', 'disable_plugin_updates', 'remove_wp_version',
    343343            'maintenance_enabled', 'white_label_enabled', 'hide_wp_logo',
    344344            'disable_file_editor', 'hide_login_errors', 'disable_author_archives',
     
    352352            'white_label' => array( 'custom_admin_logo', 'custom_footer_text', 'hide_wp_logo', 'white_label_enabled' ),
    353353            'login' => array( 'login_logo', 'login_bg_image', 'login_bg_color', 'login_btn_text', 'login_hide_remember', 'login_hide_lost_password', 'login_hide_back_to_site', 'login_hide_register', 'login_form_shadow', 'login_form_width', 'login_custom_message', 'login_form_bg', 'login_text_color', 'login_bg_position', 'login_bg_size', 'login_bg_repeat', 'login_bg_overlay', 'login_bg_overlay_opacity' ),
    354             'disable_features' => array( 'disable_comments', 'disable_emojis', 'disable_rss', 'disable_xmlrpc', 'disable_rest_api', 'disable_gutenberg', 'remove_wp_version' ),
     354            'disable_features' => array( 'disable_comments', 'disable_emojis', 'disable_rss', 'disable_xmlrpc', 'disable_rest_api', 'disable_gutenberg', 'disable_core_updates', 'disable_plugin_updates', 'remove_wp_version' ),
    355355            'security' => array( 'disable_file_editor', 'hide_login_errors', 'disable_author_archives', 'limit_login_attempts', 'force_strong_passwords' ),
    356356            'productivity' => array( 'command_palette_enabled', 'command_palette_show_admin_bar_icon', 'duplicate_enabled', 'duplicate_admin_bar', 'duplicate_bulk' ),
     
    364364            'white_label' => array( 'white_label_enabled', 'hide_wp_logo' ),
    365365            'login' => array( 'login_hide_remember', 'login_hide_lost_password', 'login_hide_back_to_site', 'login_hide_register', 'login_form_shadow' ),
    366             'disable_features' => array( 'disable_comments', 'disable_emojis', 'disable_rss', 'disable_xmlrpc', 'disable_rest_api', 'disable_gutenberg', 'remove_wp_version' ),
     366            'disable_features' => array( 'disable_comments', 'disable_emojis', 'disable_rss', 'disable_xmlrpc', 'disable_rest_api', 'disable_gutenberg', 'disable_core_updates', 'disable_plugin_updates', 'remove_wp_version' ),
    367367            'security' => array( 'disable_file_editor', 'hide_login_errors', 'disable_author_archives', 'limit_login_attempts', 'force_strong_passwords' ),
    368368            'productivity' => array( 'command_palette_enabled', 'command_palette_show_admin_bar_icon', 'duplicate_enabled', 'duplicate_admin_bar', 'duplicate_bulk' ),
  • devforge-admin-toolkit/tags/1.0.3/readme.txt

    r3454367 r3454516  
    44Requires at least: 5.0
    55Tested up to: 6.7
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77Requires PHP: 7.2
    88License: GPLv2 or later
     
    3737*   **Heartbeat Control:** Reduce server resource usage by limiting the WordPress Heartbeat API.
    3838*   **Disable Unused Features:** Turn off Emojis, Embeds, RSS Feeds, and Comments globally to speed up your site.
     39*   **Disable Auto-Updates:** Control WordPress core and plugin automatic updates and notifications.
    3940
    4041**🛠️ Admin Customization**
     
    8081
    8182= Can I restore default menus if I make a mistake? =
    82 Absolutely. The Menu Editor / White Label features has a "Restore Defaults" button to undo all changes.
     83Absolutely. The Menu Editor has a "Restore Defaults" button to undo all changes.
    8384
    8485== Screenshots ==
     
    9394== Changelog ==
    9495
    95 = 1.0.2 - 2026-02-05 =
    96 *   **Fix:** Resolved issues with file synchronization and SVN deployment.
    97 *   **Maintenance:** Updated plugin structure for better stability.
     96= 1.0.3 - 2026-02-05 =
     97*   **New Feature:** Added option to disable WordPress Core automatic updates.
     98*   **New Feature:** Added option to disable Plugin automatic updates.
     99*   **New Feature:** Automatic suppression of update notifications when updates are disabled.
     100*   **Maintenance:** Security updates and performance improvements.
    98101
    99102= 1.0.1 - 2026-02-05 =
  • devforge-admin-toolkit/trunk/devforge-admin-toolkit.php

    r3454367 r3454516  
    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.2
     5 * Version: 1.0.3
    66 * Author: DevForge
    77 * Author URI: https://profiles.wordpress.org/devforge/
     
    1818
    1919
    20 define( 'DEVFADTO_VERSION', '1.0.2' );
     20define( 'DEVFADTO_VERSION', '1.0.3' );
    2121define( 'DEVFADTO_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    2222define( 'DEVFADTO_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
     
    245245        'disable_rest_api' => 0,
    246246        'disable_gutenberg' => 0,
     247        'disable_core_updates' => 0,
     248        'disable_plugin_updates' => 0,
    247249        'remove_wp_version' => 0,
    248250        'hide_all_notices' => 0,
  • devforge-admin-toolkit/trunk/includes/class-disable-features.php

    r3453693 r3454516  
    5757        if ( ! empty( $this->options['disable_gutenberg'] ) ) {
    5858            $this->disable_gutenberg();
     59        }
     60
     61        // Disable Core Updates
     62        if ( ! empty( $this->options['disable_core_updates'] ) ) {
     63            $this->disable_core_updates();
     64        }
     65
     66        // Disable Plugin Updates
     67        if ( ! empty( $this->options['disable_plugin_updates'] ) ) {
     68            $this->disable_plugin_updates();
    5969        }
    6070    }
     
    227237
    228238    /**
     239     * Disable WordPress Core Updates
     240     */
     241    private function disable_core_updates() {
     242        // Disable core updates
     243        add_filter( 'auto_update_core', '__return_false' );
     244        add_filter( 'allow_major_auto_core_updates', '__return_false' );
     245        add_filter( 'allow_minor_auto_core_updates', '__return_false' );
     246        add_filter( 'allow_dev_auto_core_updates', '__return_false' );
     247        add_filter( 'wp_auto_update_core', '__return_false' );
     248       
     249        // Disable core update emails
     250        add_filter( 'auto_core_update_send_email', '__return_false' );
     251        add_filter( 'send_core_update_notification_email', '__return_false' );
     252        add_filter( 'automatic_updates_send_debug_email', '__return_false' );
     253    }
     254
     255    /**
     256     * Disable Plugin Updates
     257     */
     258    private function disable_plugin_updates() {
     259        // Disable plugin updates
     260        add_filter( 'auto_update_plugin', '__return_false' );
     261       
     262        // Disable plugin update emails
     263        add_filter( 'auto_plugin_update_send_email', '__return_false' );
     264        add_filter( 'send_plugin_update_notification_email', '__return_false' );
     265    }
     266
     267    /**
    229268     * Get all available features to disable
    230269     */
     
    255294                'description' => __( 'Use classic editor instead of block editor', 'devforge-admin-toolkit' ),
    256295            ),
     296            'disable_core_updates' => array(
     297                'label' => __( 'Disable Core Auto Updates', 'devforge-admin-toolkit' ),
     298                'description' => __( 'Disable WordPress core background updates & related emails', 'devforge-admin-toolkit' ),
     299            ),
     300            'disable_plugin_updates' => array(
     301                'label' => __( 'Disable Plugin Auto Updates', 'devforge-admin-toolkit' ),
     302                'description' => __( 'Disable plugin background updates & related emails', 'devforge-admin-toolkit' ),
     303            ),
    257304            'remove_wp_version' => array(
    258305                'label' => __( 'Hide WordPress Version', 'devforge-admin-toolkit' ),
  • devforge-admin-toolkit/trunk/includes/class-settings.php

    r3454357 r3454516  
    340340            'hide_admin_bar_in_admin', 'hide_admin_bar_frontend',
    341341            'disable_comments', 'disable_emojis', 'disable_rss', 'disable_xmlrpc',
    342             'disable_rest_api', 'disable_gutenberg', 'remove_wp_version',
     342            'disable_rest_api', 'disable_gutenberg', 'disable_core_updates', 'disable_plugin_updates', 'remove_wp_version',
    343343            'maintenance_enabled', 'white_label_enabled', 'hide_wp_logo',
    344344            'disable_file_editor', 'hide_login_errors', 'disable_author_archives',
     
    352352            'white_label' => array( 'custom_admin_logo', 'custom_footer_text', 'hide_wp_logo', 'white_label_enabled' ),
    353353            'login' => array( 'login_logo', 'login_bg_image', 'login_bg_color', 'login_btn_text', 'login_hide_remember', 'login_hide_lost_password', 'login_hide_back_to_site', 'login_hide_register', 'login_form_shadow', 'login_form_width', 'login_custom_message', 'login_form_bg', 'login_text_color', 'login_bg_position', 'login_bg_size', 'login_bg_repeat', 'login_bg_overlay', 'login_bg_overlay_opacity' ),
    354             'disable_features' => array( 'disable_comments', 'disable_emojis', 'disable_rss', 'disable_xmlrpc', 'disable_rest_api', 'disable_gutenberg', 'remove_wp_version' ),
     354            'disable_features' => array( 'disable_comments', 'disable_emojis', 'disable_rss', 'disable_xmlrpc', 'disable_rest_api', 'disable_gutenberg', 'disable_core_updates', 'disable_plugin_updates', 'remove_wp_version' ),
    355355            'security' => array( 'disable_file_editor', 'hide_login_errors', 'disable_author_archives', 'limit_login_attempts', 'force_strong_passwords' ),
    356356            'productivity' => array( 'command_palette_enabled', 'command_palette_show_admin_bar_icon', 'duplicate_enabled', 'duplicate_admin_bar', 'duplicate_bulk' ),
     
    364364            'white_label' => array( 'white_label_enabled', 'hide_wp_logo' ),
    365365            'login' => array( 'login_hide_remember', 'login_hide_lost_password', 'login_hide_back_to_site', 'login_hide_register', 'login_form_shadow' ),
    366             'disable_features' => array( 'disable_comments', 'disable_emojis', 'disable_rss', 'disable_xmlrpc', 'disable_rest_api', 'disable_gutenberg', 'remove_wp_version' ),
     366            'disable_features' => array( 'disable_comments', 'disable_emojis', 'disable_rss', 'disable_xmlrpc', 'disable_rest_api', 'disable_gutenberg', 'disable_core_updates', 'disable_plugin_updates', 'remove_wp_version' ),
    367367            'security' => array( 'disable_file_editor', 'hide_login_errors', 'disable_author_archives', 'limit_login_attempts', 'force_strong_passwords' ),
    368368            'productivity' => array( 'command_palette_enabled', 'command_palette_show_admin_bar_icon', 'duplicate_enabled', 'duplicate_admin_bar', 'duplicate_bulk' ),
  • devforge-admin-toolkit/trunk/readme.txt

    r3454367 r3454516  
    44Requires at least: 5.0
    55Tested up to: 6.7
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77Requires PHP: 7.2
    88License: GPLv2 or later
     
    3737*   **Heartbeat Control:** Reduce server resource usage by limiting the WordPress Heartbeat API.
    3838*   **Disable Unused Features:** Turn off Emojis, Embeds, RSS Feeds, and Comments globally to speed up your site.
     39*   **Disable Auto-Updates:** Control WordPress core and plugin automatic updates and notifications.
    3940
    4041**🛠️ Admin Customization**
     
    8081
    8182= Can I restore default menus if I make a mistake? =
    82 Absolutely. The Menu Editor / White Label features has a "Restore Defaults" button to undo all changes.
     83Absolutely. The Menu Editor has a "Restore Defaults" button to undo all changes.
    8384
    8485== Screenshots ==
     
    9394== Changelog ==
    9495
    95 = 1.0.2 - 2026-02-05 =
    96 *   **Fix:** Resolved issues with file synchronization and SVN deployment.
    97 *   **Maintenance:** Updated plugin structure for better stability.
     96= 1.0.3 - 2026-02-05 =
     97*   **New Feature:** Added option to disable WordPress Core automatic updates.
     98*   **New Feature:** Added option to disable Plugin automatic updates.
     99*   **New Feature:** Automatic suppression of update notifications when updates are disabled.
     100*   **Maintenance:** Security updates and performance improvements.
    98101
    99102= 1.0.1 - 2026-02-05 =
Note: See TracChangeset for help on using the changeset viewer.