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/tombroucke/otomaties-social-media-picture-generator/archive/refs/heads/main.zipOn Packagist as tombroucke/otomaties-social-media-picture-generator:
composer require tombroucke/otomaties-social-media-picture-generatorNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Plugin boilerplate
Clone
git clone git@github.com:tombroucke/plugin-boilerplate.git
Rename
PLUGIN_NAME="my-plugin"
PLUGIN_NAMESPACE="MyPlugin"
rm -rf plugin-boilerplate/.git
mv plugin-boilerplate/plugin-boilerplate.php plugin-boilerplate/"$PLUGIN_NAME".php
mv plugin-boilerplate "$PLUGIN_NAME"
find "$PLUGIN_NAME" -type f -name '*.php' -not -path '"$PLUGIN_NAME"/vendor/*' -exec sed -i '' "s/PluginBoilerplate/${PLUGIN_NAMESPACE}/g" {} \;
find "$PLUGIN_NAME" -type f -name '*.php' -not -path '"$PLUGIN_NAME"/vendor/*' -exec sed -i '' "s/plugin-boilerplate/${PLUGIN_NAME}/g" {} \;
sed -i '' "s/PluginBoilerplate/${PLUGIN_NAMESPACE}/g" "$PLUGIN_NAME"/composer.json