=== EffortLess Disable All Comments === Contributors: domclic Tags: comments, disable comments, avatars, multisite, trackbacks Requires at least: 6.2 Tested up to: 7.0 Stable tag: 1.8.16 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Completely disables comments, trackbacks, and avatars site-wide or network-wide with a single toggle. Multisite compatible. == Description == EffortLess Disable All Comments allows you to disable comments, trackbacks, and avatars across your WordPress site or multisite network with a single checkbox. When enabled, it removes comment functionality, hides the Comments and Discussion menus, and blocks comment submissions. Uncheck to restore all features. Features: Disables comments and trackbacks for all post types. Removes avatars site-wide. Hides Comments and Discussion settings in the admin. Blocks comment submissions via frontend, admin, and REST API. Multisite support: applies settings network-wide. Simple toggle to enable/disable. == Installation == Upload the effortless-disable-all-comments folder to the /wp-content/plugins/ directory. Activate the plugin through the 'Plugins' menu in WordPress. For single sites, go to Settings > Disable Comments to toggle the setting. For multisite, go to Network Admin > Network Settings > Disable Comments to apply network-wide. == Frequently Asked Questions == = Does this plugin work on multisite? = Yes, it’s fully compatible with multisite. The toggle in Network Admin applies settings to all sites. = Will comments and avatars be restored if I uncheck the box? = Yes, unchecking the box restores comments, trackbacks, avatars, and Discussion settings. = Can users still submit comments when disabled? = No, comments are blocked at the database level and via the REST API, preventing all submissions. = Why do I see an error on the multisite dashboard? = Enable debugging in wp-config.php (WP_DEBUG, WP_DEBUG_LOG) and check wp-content/debug.log for details. Contact support with the error message. == Screenshots == Settings page in single site admin. Network Admin settings for multisite. == Changelog == = 1.8.16 = * Refactor: donate notice file kept as includes/class-donate-notice.php (preserves SVN file history); class remains Effortless_Donate_Notice. = 1.8.15 = * Fix: donate notice now correctly displays on Network Admin pages — screen ID normalization strips WordPress's -network/-user suffix before matching. = 1.8.14 = * Refactor: donate notice class renamed Donate_Notice → Effortless_Donate_Notice (WP-standard prefix); file renamed to class-effortless-donate-notice.php. No phpcs:ignore needed anywhere. = 1.8.13 = * Fix: donate notice now uses current_screen hook for reliable screen detection on single-site and multisite Network Admin pages. = 1.8.12 = * Improvement: added dismissible donate notice on the plugin settings screen. * Improvement: added Donate link header field and includes/class-donate-notice.php. = 1.8.11 = Replaced checkbox form with an instant-save CSS toggle switch. Removed Settings API form; saving now happens via AJAX on toggle. = 1.8.10 = Moved settings page into Settings menu (single site) and Network Settings menu (multisite). Removed custom top-level EffortLess menu. = 1.8.9 = Fixed version mismatch between plugin header and readme. Added ELDAC_VERSION constant. Used constant for asset versioning. = 1.8.8 = WordPress 7.0 update. = 1.8.7 = Replaced inline CSS with `wp_enqueue_style` and `wp_add_inline_style` for proper asset loading. = 1.8.6 = Fix small errors = 1.8.5 = Fix syntax errors = 1.8.4 = Create an EffortLess menu for the Network dashboard = 1.8.3 = Fixed input sanitization warning for POST data in network options update. Improved settings page UI consistency. = 1.8.2 = Updated settings page to display checkbox and text inline, matching WordPress default UI/UX. = 1.8.1 = Fixed text domain mismatches and removed unnecessary Domain Path header. Added proper escaping and sanitization for inputs and outputs. = 1.8.0 = Fixed multisite dashboard error and improved Comments menu removal. Enhanced network option updates. = 1.7.0 = Improved Comments menu removal with higher priority and CSS fallback. = 1.6.0 = Added complete comment blocking via database and REST API. = 1.5.0 = Fixed multisite network option updates to prevent errors. == Upgrade Notice == = 1.8.11 = Settings page now uses an instant-save toggle switch. No breaking changes. = 1.8.10 = Settings page moved to Settings > Disable Comments. The top-level EffortLess menu is removed. = 1.8.9 = Maintenance release. No breaking changes. = 1.8.7 = Updated to use proper WordPress asset enqueuing. No breaking changes.