I have a function that strips the youtube id off a url. I then want to use this function 10 time per page (in the wordpress loop).
The function works great when I fe
You can simply add your function in the $.fn variable:
$.fn
(function ($) { $.fn.getList = function() { // ... }; }(jQuery));
Example usage:
$().getList();
This is what you would typically do while creating a Basic Plugin for jQuery.