{"id":6351,"date":"2009-08-09T10:38:45","date_gmt":"2009-08-09T10:38:45","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/oas-toolbox\/"},"modified":"2009-08-09T13:50:01","modified_gmt":"2009-08-09T13:50:01","slug":"oas-toolbox","status":"closed","type":"plugin","link":"https:\/\/en-gb.wordpress.org\/plugins\/oas-toolbox\/","author":3866594,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"1.0","tested":"2.8.1","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"OAS ToolBox","header_author":"Online Associates, UAE","header_description":"","assets_banners_color":"","last_updated":"2009-08-09 13:50:01","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/","header_author_uri":"http:\/\/www.onlineassociates.ae","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1149,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[2275,42614,23575,46606],"plugin_category":[],"plugin_contributors":[93842],"plugin_business_model":[],"class_list":["post-6351","plugin","type-plugin","status-closed","hentry","plugin_tags-developer","plugin_tags-oas","plugin_tags-toolbox","plugin_tags-wpx","plugin_contributors-uae","plugin_committers-oasae"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/oas-toolbox.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>OAS ToolBox is a plugin that simplifies &amp; enhances the use of WordPress. It includes functions &amp; tools which are useful to developers and short codes that are useful to authors.<\/p>\n\n\n\nFunctions &amp; Tools Useful to Developers\n\n<ol>\n<li><p>oas_get_page_title() - Queries the wp_cache to identify the title of a given page\/post ID<\/p><\/li>\n<li><p>oas_get_page_anchor_tag() - Queries the wp_cache to identify the title &amp; permalink of a given page\/post ID and add a 'current-page' value to the anchor tag's class in case the page\/post being queried is that which the site visitor is currently viewing.<\/p><\/li>\n<li><p>oas_get_post_exists() - Checks to make sure that a given post\/page exists and informs the user through the OAS WP ErrorFree plugin in case bla bla bla.<\/p><\/li>\n<li><p>oas_print_array() - Similar to PHP built in print_r() but it returns the output with<\/p><\/li>\n<\/ol>\n\n<p>&lt;<\/p>\n\n<p>pre&gt; html tags so the output maintains both spaces and line breaks as is.<\/p>\n\n<ol>\n<li><p>oas_report_404() - When a 404 is in place, this function allows you to log the error in the \"OAS WP Error Free\" dashboard with the requested url.<\/p><\/li>\n<li><p>oas_get_parents() - Retrieves the parents\/grand parents id(s) of a given post\/page in an array.<\/p><\/li>\n<li><p>oas_get_section_id() - Similar to oas_get_parents() but this one retrieves the grand parent id of a given post.<\/p><\/li>\n<li><p>oas_get_meta() - When you deal with huge number of post_meta you would notice that wordpress had generated lots queries to database. You can reduce the number of queries by using this function. Basically this function caches the whole meta-data in to the wordpress built-in cache.<\/p><\/li>\n<li><p>oas_date_unix() - Allows you to convert the wordpress date format in to UNIX equivalent.<\/p><\/li>\n<li><p>oas_date_format() - This function is very handy if you want the default wordpress date format to be converted to your desired date format. (Accepts all kind of PHP date format parameter string)<\/p><\/li>\n<li><p>oas_get_user_type() - Allows you to indentify the current user role. ('subscriber', 'contributor', 'author', 'editor', 'admin' and 'visitor')<\/p><\/li>\n<li><p>oas_output_buffer() - Allows you to modify the wordpress generated html body content to be modified just before it's ready to be sent(printed) to the browser.<\/p><\/li>\n<\/ol>\n\n\n\nShort Codes Useful to Blog Authors\n\n<ol>\n<li><p>[OAS get_page_title=PostID \/] Generates the title of a given post\/page id.<\/p><\/li>\n<li><p>[OAS get_page_anchor_tag=PostID \/] Generates the html anchor tag with link to the given post\/page id.<\/p><\/li>\n<li><p>[OAS get_page_href=PostID \/] Generates the permalink to a given post\/page id.<\/p><\/li>\n<li><p>[OAS get_date=Y-m-d \/] - Generates the current date.<\/p><\/li>\n<\/ol>\n\n<!--section=installation-->\n<p>Instructions for installing the OAS ToolBox Plugin.<\/p>\n\n<ol>\n<li>Download and extract the Plugin zip file.<\/li>\n<li>Upload the 'oas-toolbox' folder  to the '\/wp-content\/plugins\/' directory.<\/li>\n<li>Activate the Plugin via the 'Plugins' menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>No FAQ as yet...<\/p>\n\n<!--section=changelog-->\n<h4>Version 1.0 - 09 Aug 2009<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"OAS ToolBox plugin contains functions that helpful to develop plugins for wordpress.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/6351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=6351"}],"author":[{"embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/oasae"}],"wp:attachment":[{"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=6351"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=6351"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=6351"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=6351"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=6351"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=6351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}