Skip to content

Instantly share code, notes, and snippets.

@andreiglingeanu
Created July 22, 2021 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreiglingeanu/116ecab581a0a3d10d84c195d17d2e91 to your computer and use it in GitHub Desktop.
Save andreiglingeanu/116ecab581a0a3d10d84c195d17d2e91 to your computer and use it in GitHub Desktop.
<?php
add_action('blocksy:pro:content-blocks:pre-output', function ($id) {
if (!class_exists('GhostKit_Parse_Blocks')) {
return;
}
$post = get_post($id);
\GhostKit_Parse_Blocks::maybe_parse_blocks_from_custom_location(
$post->post_content
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment