mirror of
https://github.com/szepeviktor/wordpress-website-lifecycle.git
synced 2026-07-27 02:55:34 +08:00
858 B
858 B
Envato Market updater
Use this script to reinstall the Envato Market plugin from its GitHub
repository. This is an operations script, not an MU plugin; do not place it in
wp-content/mu-plugins/.
Instructions
- Save the snippet as
envato-market-update.shoutside the public web root. - Make the script executable.
- Run it from the WordPress installation directory, where WP-CLI can locate the website.
chmod 0755 envato-market-update.sh
./envato-market-update.sh
Script
#!/usr/bin/env bash
set -eu
WP_CONTENT_DIR="$(wp eval 'echo WP_CONTENT_DIR;')"
if [ -z "${WP_CONTENT_DIR}" ] || [ ! -d "${WP_CONTENT_DIR}" ]; then
echo "WordPress content directory was not found." >&2
exit 1
fi
wp plugin install \
"https://github.com/envato/wp-envato-market/archive/refs/heads/master.zip" \
--force