This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

OAS ToolBox


OAS ToolBox is a plugin that simplifies & enhances the use of WordPress. It includes functions & tools which are useful to developers and short codes that are useful to authors.

Functions & Tools Useful to Developers

  1. oas_get_page_title() – Queries the wp_cache to identify the title of a given page/post ID

  2. oas_get_page_anchor_tag() – Queries the wp_cache to identify the title & 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.

  3. 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.

  4. oas_print_array() – Similar to PHP built in print_r() but it returns the output with


pre> html tags so the output maintains both spaces and line breaks as is.

  1. 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.

  2. oas_get_parents() – Retrieves the parents/grand parents id(s) of a given post/page in an array.

  3. oas_get_section_id() – Similar to oas_get_parents() but this one retrieves the grand parent id of a given post.

  4. 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.

  5. oas_date_unix() – Allows you to convert the wordpress date format in to UNIX equivalent.

  6. 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)

  7. oas_get_user_type() – Allows you to indentify the current user role. (‘subscriber’, ‘contributor’, ‘author’, ‘editor’, ‘admin’ and ‘visitor’)

  8. 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.

Short Codes Useful to Blog Authors

  1. [OAS get_page_title=PostID /] Generates the title of a given post/page id.

  2. [OAS get_page_anchor_tag=PostID /] Generates the html anchor tag with link to the given post/page id.

  3. [OAS get_page_href=PostID /] Generates the permalink to a given post/page id.

  4. [OAS get_date=Y-m-d /] – Generates the current date.


Instructions for installing the OAS ToolBox Plugin.

  1. Download and extract the Plugin zip file.
  2. Upload the ‘oas-toolbox’ folder to the ‘/wp-content/plugins/’ directory.
  3. Activate the Plugin via the ‘Plugins’ menu in WordPress.


No FAQ as yet…

Contributors & Developers

“OAS ToolBox” is open source software. The following people have contributed to this plugin.


Translate “OAS ToolBox” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


Version 1.0 – 09 Aug 2009

  • Initial Release