I have a plugin that has js file in its folder.
My main plugin file looks like this:
require('api/myapi.class.php'); // API Library
require('settings.php'); // Configuration Options
require('register_shortcodes.php');
How to add a function that will inject js file to all client pages (Not admin pages) I guess I need to use wp_enqueue_script but where should I add it?
wp_enqueue_script("myscript.js");