-
-
Save andreiglingeanu/7a9d263631e72f0d80350bf84c205acd 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_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