Improve Accessibility – Dark Mode Switcher
by Ermald Billa on WordPress.org
A secure WordPress plugin to add a universal dark/light mode toggle with localStorage support.
(0)
Improve Accessibility – Dark Mode Switcher for WP adds a professional dark/light mode toggle to your WordPress website.
Features:
- Universal dark/light mode toggle
- localStorage support for user preferences
- Modern responsive design
- Full WordPress security implementation
- JavaScript API for developers
- Mobile-friendly
- Translation-ready
Security:
The plugin implements all WordPress security standards including nonces, sanitization, escape output, and permission checks.
Developer API:
`javascript
// Get current theme
window.iadsAPI.getTheme();
// Change theme
window.iadsAPI.setTheme(‘dark’);
// Toggle theme
window.iadsAPI.toggleTheme();
Active installations0+
Weekly downloads
17–
Version1.0.0
Last updated10/3/2025
WordPress version5.8
Tested up to6.8.3
PHP version7.4
Tags
accessibilitydark modedark themelight modeTheme Switcher