Last active
November 27, 2019 09:33
-
-
Save Tepluypled/4511e676bdbd88be674631e100998e1f to your computer and use it in GitHub Desktop.
Part2
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 | |
function loadMyBlockFiles() { | |
wp_enqueue_script( | |
'my-test-text', | |
plugin_dir_url(__FILE__). 'custom.js', | |
array('wp-blocks', 'wp-i18n', 'wp-editor'), | |
true | |
); | |
} | |
add_action('enqueue_block_editor_assets', 'loadMyBlockFiles'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment