Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/iworks/spectator-role-for-mainwp-dashboard/archive/refs/heads/main.zipSpectator – Safe, Read-Only Dashboard Access for Clients & Teams for MainWP Dashboard
Want to show your clients or team members how their websites are performing without worrying about accidental updates or setting changes? MainWP Spectator introduces a dedicated "Spectator" role to your self-hosted MainWP Dashboard, giving selected users secure, read-only access.
With this lightweight plugin, your spectators can view active sites, monitor updates, check security statuses, and browse client reports, while all critical actions—like installing plugins, running bulk updates, or altering core configurations—remain strictly locked. It is the perfect tool for transparent agencies and freelancers who want to build client trust without compromising the security of their central network!
How prepare development environment?
- get this repo:
git clone git@github.com:iworks/spectator-role-for-mainwp-dashboard.git - run
npm installif needednpm install --force - run
grunt buildto build assets
How to preapre test environment?
- get
wordpress-tests-librepogit clone git@github.com:ArcFramework/wordpress-tests-lib.git - set environment variable
WP_TESTS_DIRto path towordpress-tests-librepo - configure
wp-tests-config.phpto usewordpress-tests-librepo - install PHPUnit Polyfills -
composer require --dev yoast/phpunit-polyfills:"^4.0" - set environment variable
WP_TESTS_PHPUNIT_POLYFILLS_PATHto path tophpunit-polyfillsdirectory - add some tests
- run
grunt phpunit