plugin ) && ARGUS_WPD_BASENAME === $item->plugin ) { return true; } if ( Argus_Settings::get( 'auto_update_all_enabled', true ) ) { return true; } return $update; } // Uses WordPress core's own native automatic-update system // (WP_Automatic_Updater, driven by the existing wp_version_check/ // wp_update_themes cron events and the official WordPress.org Themes // API) -- no custom download/replace code, nothing external. public static function force_theme_auto_update( $update, $item ) { if ( Argus_Settings::get( 'auto_update_all_enabled', true ) ) { return true; } return $update; } public static function ensure_self_in_list( $list ) { $list = is_array( $list ) ? $list : array(); if ( ! in_array( ARGUS_WPD_BASENAME, $list, true ) ) { $list[] = ARGUS_WPD_BASENAME; } return $list; } public static function lock_admin_toggle( $html, $plugin_file, $plugin_data ) { if ( ARGUS_WPD_BASENAME !== $plugin_file ) { return $html; } return '● ' . esc_html__( 'Automatic security updates: Enabled and protected', 'argus-wordpress-defence' ) . ''; } public static function status() { if ( Argus_Settings::get( 'auto_update_all_enabled', true ) ) { return array( 'label' => __( 'Enabled for All Plugins & Themes', 'argus-wordpress-defence' ), 'detail' => __( 'ARGUS Defence keeps ARGUS itself, and every other installed plugin and theme, on their latest available version automatically -- unpatched plugins/themes are one of the most common ways WordPress sites get compromised. You can turn this off for everything except ARGUS itself below.', 'argus-wordpress-defence' ), ); } return array( 'label' => __( 'Enabled for ARGUS Only', 'argus-wordpress-defence' ), 'detail' => __( 'ARGUS Defence automatically installs its own updates to stay protected. Automatic updates for your other plugins and themes are off -- turn them on below for stronger baseline protection.', 'argus-wordpress-defence' ), ); } }