Skip to content

Instantly share code, notes, and snippets.

@andreiglingeanu
Created July 22, 2021 12:07
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/7a9d263631e72f0d80350bf84c205acd to your computer and use it in GitHub Desktop.
Save andreiglingeanu/7a9d263631e72f0d80350bf84c205acd to your computer and use it in GitHub Desktop.
<?php
add_action(
'blocksy:pro:content-blocks:pre-output',
function ($id) {
if (! class_exists('\JET_SM\Gutenberg\Style_Manager')) {
return;
}
add_action(
'wp_print_footer_scripts',
function () use ($id) {
$inst = \JET_SM\Gutenberg\Style_Manager::get_instance();
$inst->render_blocks_fonts($id);
},
9
);
add_action(
'wp_print_footer_scripts',
function () use ($id) {
$inst = \JET_SM\Gutenberg\Style_Manager::get_instance();
$inst->render_blocks_style($id);
}
);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment