Skip to content

Instantly share code, notes, and snippets.

@andreiglingeanu
Created August 4, 2021 16:40
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/64f992d7dc6958a72f712e964cf097a4 to your computer and use it in GitHub Desktop.
Save andreiglingeanu/64f992d7dc6958a72f712e964cf097a4 to your computer and use it in GitHub Desktop.
<?php
add_action('blocksy:pro:content-blocks:pre-output', function ($id) {
if (! class_exists('Kadence_Blocks_Frontend')) {
return;
}
add_action( 'wp_enqueue_scripts', function () use ($id) {
$k = Kadence_Blocks_Frontend::get_instance();
$post = get_post($id);
$k->frontend_build_css($post);
}, 20 );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment