We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70cc917 commit 65fe6c7Copy full SHA for 65fe6c7
1 file changed
README.md
@@ -165,6 +165,12 @@ window.wplf.errorCallbacks.push(() => alert('Form submission failed!'));
165
166
These callbacks are executed in the order they appear.
167
168
+To avoid running your JavaScript too early, add `wplf-form-js` to your enqueue dependencies:
169
+```php
170
+wp_enqueue_script("themejs", "/path/to/theme.js", ["wplf-form-js"], ...);
171
+```
172
+Otherwise you might run into errors like "Cannot read property 'push' of undefined".
173
+
174
## Multilingual
175
176
You can create multilingual forms using Polylang. WPLF will register and automatically fetch the translation when you use special template tags.
0 commit comments