Внедрение JavaScript в WordPress
function mysofthunt_enqueue() {
wp_enqueue_script(
'softhunt-script',
plugins_url( 'softhunt.js', __FILE__ )
);
}
add_action( 'enqueue_block_editor_assets', 'mysofthunt_enqueue' );
Outrageous Ostrich