Last active
March 17, 2024 13:07
-
-
Save andreiglingeanu/3d3bceafca44e8dfd096b79da6e81061 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( | |
'blocksy:general:blocks:query:args', | |
function ($query_args, $attributes) { | |
if ( | |
isset($attributes['uniqueId']) | |
&& | |
$attributes['uniqueId'] === '9afc2324' | |
) { | |
// Modify $query_args here | |
} | |
return $query_args; | |
}, | |
10, | |
2 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment