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

WordPress Multisite Recaptcha

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

by Mario Yepes · github.com/marioy47/wordpress-multisite-recaptcha · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/marioy47/wordpress-multisite-recaptcha/archive/refs/heads/master.zip

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}/