You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.
I'm using Sage which bundles all the scripts so i don't want separate scripts in my functions.php, how can i achieve this? Or would it be possible to just place all of this in a plugin?
The text was updated successfully, but these errors were encountered:
Well the problem is the wp_localize_script. If I don't enqueue the script first, the lines below won't work. So how can I add the ajaxurl, like and unlike functionality if the main.js contains all the simpleLikes code and is enqueued somewhere else?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey there
Great code! Just a question: How can we use this without enqueue the script in the functions.php?
I'm using Sage which bundles all the scripts so i don't want separate scripts in my functions.php, how can i achieve this? Or would it be possible to just place all of this in a plugin?
The text was updated successfully, but these errors were encountered: