I am trying to load some scripts in the front-end. Been trying the code below (and variations of it) but doesn't do anything. Otherwise, the plugin is loading fine (using custom shortcode).
class MyPluginClass {
function load_scripts() {
wp_enqueue_script('any_unique_id_is_ok', plugins_url('/somefolder/somefile.js', __FILE__),array('jquery'));
}
}
add_action('wp_enqueue_scripts', array('MyPluginClass','load_scripts'));
Any help would be highly appreciated. Thanks!