WP Manifestindependent plugin directory
manifest / security / wordpress-multisite-recaptcha

WordPress Multisite Recaptcha

A WordPress plugin to add the Google Recaptcha on a multisite environment

★ 0stars

Install

Download source zip No release zip yet

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/marioy47/wordpress-multisite-recaptcha/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A WordPress plugin to add Google's Recaptcha on every site on a multisite environment.

Example of the login screen

Development

The plugin requires that you have installed both composer and Node's npm globally.

Also, you should have a working WordPress installation.

cd /path/to/wordpress/wp-content/plugins
git clone git@github.com:marioy47/wordpress-multisite-recaptcha.git
cd wordpress-multisite-recaptcha
composer install
composer dump-autoload

Remember to execute composer dump-autoload every time you add or change a class name inside includes/

Deployment

REMOTE_CONN=user@remote-host.com
REMOTE_PATH=/var/www/wp/wp-content/plugins/`basename $PWD` # No trailing slash

echo "Deploying to ${REMOTE_CONN}:${REMOTE_PATH}/"
sleep 3

rsync -avz -e ssh --delete ./{includes,js,languages,vendor,*.php} ${REMOTE_CONN}:${REMOTE_PATH}/