{"action":"created","issue":{"url":"https://api.github.com/repos/DevinVinson/WordPress-Plugin-Boilerplate/issues/262","labels_url":"https://api.github.com/repos/DevinVinson/WordPress-Plugin-Boilerplate/issues/262/labels{/name}","comments_url":"https://api.github.com/repos/DevinVinson/WordPress-Plugin-Boilerplate/issues/262/comments","events_url":"https://api.github.com/repos/DevinVinson/WordPress-Plugin-Boilerplate/issues/262/events","html_url":"https://github.com/DevinVinson/WordPress-Plugin-Boilerplate/issues/262","id":56723445,"number":262,"title":"How to add public shortcodes","user":{"login":"tprinty","id":145309,"avatar_url":"https://avatars.githubusercontent.com/u/145309?v=3","gravatar_id":"","url":"https://api.github.com/users/tprinty","html_url":"https://github.com/tprinty","followers_url":"https://api.github.com/users/tprinty/followers","following_url":"https://api.github.com/users/tprinty/following{/other_user}","gists_url":"https://api.github.com/users/tprinty/gists{/gist_id}","starred_url":"https://api.github.com/users/tprinty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tprinty/subscriptions","organizations_url":"https://api.github.com/users/tprinty/orgs","repos_url":"https://api.github.com/users/tprinty/repos","events_url":"https://api.github.com/users/tprinty/events{/privacy}","received_events_url":"https://api.github.com/users/tprinty/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-02-05T20:18:36Z","updated_at":"2015-11-12T23:47:12Z","closed_at":"2015-05-31T19:32:19Z","body":"Hello,\r\n\r\nI am not clear on how to add a public shortcode?  Can you provide an example?\r\n\r\nThanks\r\n-Tom\r\n"},"comment":{"url":"https://api.github.com/repos/DevinVinson/WordPress-Plugin-Boilerplate/issues/comments/156273242","html_url":"https://github.com/DevinVinson/WordPress-Plugin-Boilerplate/issues/262#issuecomment-156273242","issue_url":"https://api.github.com/repos/DevinVinson/WordPress-Plugin-Boilerplate/issues/262","id":156273242,"user":{"login":"slushman","id":2255645,"avatar_url":"https://avatars.githubusercontent.com/u/2255645?v=3","gravatar_id":"","url":"https://api.github.com/users/slushman","html_url":"https://github.com/slushman","followers_url":"https://api.github.com/users/slushman/followers","following_url":"https://api.github.com/users/slushman/following{/other_user}","gists_url":"https://api.github.com/users/slushman/gists{/gist_id}","starred_url":"https://api.github.com/users/slushman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slushman/subscriptions","organizations_url":"https://api.github.com/users/slushman/orgs","repos_url":"https://api.github.com/users/slushman/repos","events_url":"https://api.github.com/users/slushman/events{/privacy}","received_events_url":"https://api.github.com/users/slushman/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T23:47:12Z","updated_at":"2015-11-12T23:47:12Z","body":"Hey Radi,\r\nI think either is perfectly fine. The first way is what I started with and I think it matches more closely to the Codex examples.\r\n\r\nHowever, I've started using the latter method recently and now prefer it. I look at shortcodes as a hook, of sorts, and using the loader class to declare which function processes a shortcode seems more efficient than declaring a function that then points to other functions. I'm sure Devin has better reasons. :)\r\n\r\nAs far as multiple shortcodes, I've run into a few situations recently where the end-user needed a separate shortcode to display different content that wouldn't be easily accomplished using a shortcode attribute. WooCommerce has several examples of this kind of thing. I see it provides the non-technical end-user a method of pseudo-designing a page for their needs without needing to write code. I'm not quite done with the functionality around those additional shortcodes, so I don't believe its up on Github just yet."}}