Closed michealengland closed 4 years ago
Currently, we're using OOPS-WP as a starting place for enqueuing block assets. Some of the challenges here is that enqueues are not being added to the registered to the correct places.
Here is an example of how I managed this on a different plugin by wrapping editor based files with enqueue_block_editor_assets action hook. https://github.com/michealengland/display-exif-data/blob/master/inc/enqueue-scripts.php
enqueue_block_editor_assets
Currently, we're using OOPS-WP as a starting place for enqueuing block assets. Some of the challenges here is that enqueues are not being added to the registered to the correct places.
Here is an example of how I managed this on a different plugin by wrapping editor based files with
enqueue_block_editor_assets
action hook. https://github.com/michealengland/display-exif-data/blob/master/inc/enqueue-scripts.phpEnqueue Expectations
enqueue_block_editor_assets
action hook.enqueue_block_editor_assets
action hook.