{"id":3286,"date":"2014-06-24T18:32:36","date_gmt":"2014-06-24T18:32:36","guid":{"rendered":"http:\/\/webninjataylor.com\/library\/?p=3286"},"modified":"2014-06-24T20:39:02","modified_gmt":"2014-06-24T20:39:02","slug":"creating-a-jquery-plugin","status":"publish","type":"post","link":"https:\/\/webninjataylor.com\/library\/creating-a-jquery-plugin\/","title":{"rendered":"Creating a jQuery Plugin"},"content":{"rendered":"<pre>$.fn.makeTabsFor = function(){...}; \u00a0 \/\/ Create method\r\n$(tabs).makeTabsFor(content); \u00a0 \/\/ Call method\r\n$.fn.makeTabsFor(content);   \/\/ Call method when no selector is used<\/pre>\n<p>When your plugin code gets called, it&#8217;s called in the context of the selected jQuery object, so the method &#8220;this&#8221; becomes the jQuery object itself.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>$.fn.makeTabsFor = function(){&#8230;}; \u00a0 \/\/ Create method $(tabs).makeTabsFor(content); \u00a0 \/\/ Call method $.fn.makeTabsFor(content); \/\/ Call method when no selector is used When your plugin code gets called, it&#8217;s called in the context of the selected jQuery object, so the method &#8220;this&#8221; becomes the jQuery object itself.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[144],"tags":[9,27],"class_list":["post-3286","post","type-post","status-publish","format-standard","hentry","category-web-shots","tag-javascript","tag-jquery"],"_links":{"self":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/3286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/comments?post=3286"}],"version-history":[{"count":3,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/3286\/revisions"}],"predecessor-version":[{"id":3313,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/3286\/revisions\/3313"}],"wp:attachment":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/media?parent=3286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/categories?post=3286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/tags?post=3286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}