Javascript callbacks clarification
-
Trying to get javascript callback working : favorites_after_button_submit, so that I can pop up login modal if user not logged in when they favourite.
Website says to add simple-locator script as dependency. Do you mean simple-favorites? Neither seems to work. Can you please share more complete example?
Callback Functions
To use the callback functions in your theme’s scripts, the simple locator script handle must be added as a dependency when enqueueing your script. The Simple Locator script handle is simple-locator. See the WordPress Codex for more information about properly enqueuing scripts.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Javascript callbacks clarification’ is closed to new replies.