Skip to content

Commit 16819db

Browse files
authored
WP Code Style for enqueue example
1 parent 65fe6c7 commit 16819db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ These callbacks are executed in the order they appear.
167167

168168
To avoid running your JavaScript too early, add `wplf-form-js` to your enqueue dependencies:
169169
```php
170-
wp_enqueue_script("themejs", "/path/to/theme.js", ["wplf-form-js"], ...);
170+
wp_enqueue_script( "themejs", "/path/to/theme.js", array( "wplf-form-js" ), ... );
171171
```
172172
Otherwise you might run into errors like "Cannot read property 'push' of undefined".
173173

0 commit comments

Comments
 (0)