{"id":31283,"date":"2014-09-02T10:00:09","date_gmt":"2014-09-02T10:00:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-toolbox\/"},"modified":"2014-09-04T08:14:20","modified_gmt":"2014-09-04T08:14:20","slug":"wp-toolbox","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-toolbox\/","author":7649430,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.3.1","stable_tag":"1.3.1","tested":"4.0.38","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"WP Toolbox","header_author":"Adrian Fraguela","header_description":"","assets_banners_color":"2a2b2d","last_updated":"2014-09-04 08:14:20","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/adrianfraguela.com\/","header_plugin_uri":"http:\/\/www.adrianfraguela.com","header_author_uri":"http:\/\/www.adrianfraguela.com","rating":5,"author_block_rating":0,"active_installs":40,"downloads":1162,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.3":"<ul>\n<li>Added new method to the plugin called Spaces2Hyphens. Name says it all!<\/li>\n<\/ul>","1.2":"<ul>\n<li>I killed it somehow<\/li>\n<\/ul>","1.1":"<ul>\n<li>Added new method to the plugin called RandomPost - Go grab some random posts!<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon.svg":{"filename":"icon.svg","revision":"978552","resolution":"","location":"assets"}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"976935","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1","1.3","1.3.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[6978,71427,3772,23575,3972],"plugin_category":[59],"plugin_contributors":[90806],"plugin_business_model":[],"class_list":["post-31283","plugin","type-plugin","status-closed","hentry","plugin_tags-classes","plugin_tags-developer-toolbox","plugin_tags-developers","plugin_tags-toolbox","plugin_tags-tools","plugin_category-utilities-and-tools","plugin_contributors-adrianfraguela","plugin_committers-adrianfraguela"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/wp-toolbox\/assets\/icon.svg?rev=978552","icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-toolbox_2a2b2d.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>WordPress plugin to give theme developers a toolbox to use to make their development faster.<\/p>\n\n<p>See <a href=\"http:\/\/wordpress.org\/plugins\/wp-toolbox\/other_notes\/\">other notes<\/a> for usage.<\/p>\n\n<h3>Methods<\/h3>\n\n<p>The WP_Toolbox plugin provides a nice and easy set of tools to help you code your WordPress templates a lot faster.<\/p>\n\n<h4>LimitString($string, $count, $charWord, $ellipsis)<\/h4>\n\n<p>Strip a string by X words or characters.<\/p>\n\n<p><strong>Usage:<\/strong>\n    WP_Toolbox::LimitString('my random string of strings', 10, 'char', '&raquo;');<\/p>\n\n<p><strong>$string<\/strong> <em>string<\/em> Your string<\/p>\n\n<p><strong>$count<\/strong> <em>integer<\/em> The number of words or characters you want to return<\/p>\n\n<p><strong>$charWord<\/strong> <em>string<\/em> Options: char or word<\/p>\n\n<p><strong>$ellipsis<\/strong> <em>string<\/em> What to append at the end when we chop your string<\/p>\n\n<h4>ContentByID($id, $stripped)<\/h4>\n\n<p>Get the content of a desired post by the ID<\/p>\n\n<p><strong>Usage<\/strong>\n    WP_Toolbox::ContentByID(62, true);<\/p>\n\n<p><strong>$id<\/strong> <em>integer<\/em> - The ID of the post you want to get<\/p>\n\n<p><strong>$stripped<\/strong> <em>boolean<\/em> - Whether or not to strip all the tags from the content<\/p>\n\n<h4>RandomPost($post_type)<\/h4>\n\n<p>Return a random post<\/p>\n\n<p><strong>Usage<\/strong>\nTo get a random post \n    WP_Toolbox::RandomPost();<\/p>\n\n<p>To get the title of a random post\n    WP_Toolbox::RandomPost()-&gt;post_title;<\/p>\n\n<p>Other options that can be pulled through can be <a href=\"http:\/\/codex.wordpress.org\/Class_Reference\/WP_Post\">found here<\/a><\/p>\n\n<h4>String2Hyphens($string)<\/h4>\n\n<p>Returns a string with spaces hyphenated.<\/p>\n\n<p><strong>Usage<\/strong>\n    WP_Toolbox::String2Hyphens(\"This is my amazing string that I need hyphenating\");<\/p>\n\n<h3>Development Roadmap<\/h3>\n\n<p>The following is a list of additions to the WP-Toolbox plugin that I will be working on in the near future<\/p>\n\n<ul>\n<li><strong>Distant Future<\/strong> - Allow the creation of forms<\/li>\n<li><strong>Soon<\/strong> - Return a list of custom post types<\/li>\n<li><strong>Soon<\/strong> - Return a random string<\/li>\n<li><strong>Soon<\/strong> - Return current user (name, email etc)<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>Download a <a href=\"https:\/\/github.com\/afraguela\/toolbox\/archive\/master.zip\">ZIP<\/a> and upload it to your WordPress installation.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>I want a new feature, how do I do it?<\/dt>\n<dd><p>Easy, use the <a href=\"http:\/\/wordpress.org\/support\/plugin\/wp-toolbox\">support forum<\/a> to ask for new features. Title the post with [Feature Request].<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3<\/h4>\n\n<ul>\n<li>Added new method to the plugin called Spaces2Hyphens<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>I killed it somehow<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added new method to the plugin called RandomPost<\/li>\n<\/ul>\n\n<h4>1<\/h4>\n\n<ul>\n<li>First ever version of the plugin! Fireworks went off!<\/li>\n<\/ul>","raw_excerpt":"WordPress plugin to give theme developers a toolbox to use to make their development faster.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/31283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=31283"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/adrianfraguela"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=31283"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=31283"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=31283"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=31283"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=31283"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=31283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}