Created
December 29, 2022 14:39
-
-
Save elpuas/7d32e037bb63f2708cc74f644f7c966f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/** | |
* Register Scripts | |
* | |
* @return void | |
*/ | |
function block_assets_scripts_enqueue() { | |
$block_asset_dependencies = [ 'wp-i18n', 'wp-blocks', 'wp-dom-ready', 'wp-edit-post' ]; | |
wp_enqueue_script( 'loop-patterns-scripts', plugins_url( 'build/index.js', __FILE__ ), $block_asset_dependencies ); | |
} | |
add_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\block_assets_scripts_enqueue' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment