Skip to content

Instantly share code, notes, and snippets.

@andreiglingeanu
Created February 14, 2024 09:48
Show Gist options
  • Save andreiglingeanu/0692b691a424f324fc302ed7a9c2650b to your computer and use it in GitHub Desktop.
Save andreiglingeanu/0692b691a424f324fc302ed7a9c2650b to your computer and use it in GitHub Desktop.
<?php
add_filter(
'blocksy:pro:content-blocks:condition-match',
function ($matches, $content_block_id) {
if ($content_block_id === 15054) {
$resume_id = get_queried_object_id();
if (! resume_manager_user_can_view_resume($resume_id)) {
return false;
}
}
return $matches;
},
10,
2
);
@andreiglingeanu
Copy link
Author

@indigetal I'm glad to hear we found a solution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment