WP Manifestindependent plugin directory
manifest / editor / wp-performance-snippet-variation

Snippet Variation

Snippet Variation for use related snippets block

by Faramaz Patrick · github.com/wpperformance/wp-performance-snippet-variation

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/wpperformance/wp-performance-snippet-variation/archive/refs/heads/main.zip

Declares an update source (wp-performance-snippet-variation), so updates arrive through the plugin's own updater.

Readme

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

Links page WP developer resources

Read the full README on GitHub →