Skip to content

Instantly share code, notes, and snippets.

@andreiglingeanu
Last active March 17, 2024 13:07
Show Gist options
  • Save andreiglingeanu/3d3bceafca44e8dfd096b79da6e81061 to your computer and use it in GitHub Desktop.
Save andreiglingeanu/3d3bceafca44e8dfd096b79da6e81061 to your computer and use it in GitHub Desktop.
<?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