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/wpperformance/wp-performance-snippet-variation/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Variation block exemple
You can create variation for core block and modify the query arguments.
I use it on wp-performance.com. Exemple on this page end => https://wp-performance.com/snippet/desactiver-php-dans-les-repertoires-plugins-uploads-et-themes/
Method
1 - Create variation block with javascript file => assets/block-variations.js
2 - Change query arguments with filter hook for this variation namespace => index.php