Skip to content

Instantly share code, notes, and snippets.

@andreiglingeanu
Created September 7, 2022 15:39
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/fb1d39725299ce364be40490f6f93f63 to your computer and use it in GitHub Desktop.
Save andreiglingeanu/fb1d39725299ce364be40490f6f93f63 to your computer and use it in GitHub Desktop.
<?php
add_action('blocksy:pro:content-blocks:pre-output', function ($post_id) {
if (! class_exists('UAGB_Post_Assets')) {
return;
}
$current_post_assets = new UAGB_Post_Assets(intval($post_id));
$current_post_assets->enqueue_scripts();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment