How to use wordpress function wp_enqueue_script() in php?
I am wondering if that is the right way to use wp_enqueue_script() function in php. Do I need to place wp_enqueue_script() somewhere else ? Not really, here’s what the official docs say in the notes: https://developer.wordpress.org/reference/functions/wp_enqueue_script/ The function should be called using the wp_enqueue_scripts action hook if you want to call it on the front-end … Read more