Skip to content

Commit e503554

Browse files
authored
Don't enqueue scripts in embeds
1 parent 99fb67b commit e503554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function main() {
2121

2222
function register_scripts() {
2323
add_action(
24-
'init',
24+
'wp_enqueue_scripts',
2525
function () {
2626
$json_data = wp_json_encode(
2727
array(

0 commit comments

Comments
 (0)