I have a script which looks like this
$(function(){
... Jquery Code in Here
});
and I want to wrap it to make it compatible with WordPress. Do I have to do ...
(function($){
$(function(){
... Jquery Code in Here
});
})(this.jQuery);
It works but it seems like there might be a more concise version. Is there?
wp_enqueue_script
codex page.