Title: WP Development Utilities
Author: Fabio Cicerchia
Published: <strong>2008 年 10 月 27 日</strong>
Last modified: 2008 年 11 月 13 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/wp-development-utilities.svg)

# WP Development Utilities

 由 [Fabio Cicerchia](https://profiles.wordpress.org/phakko/) 開發

[下載](https://downloads.wordpress.org/plugin/wp-development-utilities.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/wp-development-utilities/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/wp-development-utilities/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/wp-development-utilities/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/wp-development-utilities/#developers)

 [技術支援](https://wordpress.org/support/plugin/wp-development-utilities/)

## 外掛說明

This script is useful during the development of WordPress, because will extend with
a set of functions.

### Usage

class `WP_Dev_Utilities`:

 * _debug() – A function to print variable only if the user logged as administrator
 * _retrieve_user_data() – Retrive user data informations only if user is logged
   in
 * count_num_pages_post($id) – Returns the number of pages of a post
 * get_current_execution_time($precision = 3) – Get the current execution time
 * get_logged_username() – Returns the name of the user logged on
 * get_post_content_from_id($id) – Return the content of the post from his id
 * get_post_content_from_permalink($permalink) – Return the contents of the post
   permalink
 * get_post_id_from_permalink($permalink) – Return the id of the post permalink
 * is_administrator() – Check if logged user has the administrator privileges
 * get_web_browser($shortname = false, $uppercase = false) – Returns the user’s 
   browser name
 * get_web_server($uppercase = false) – Returns the web server is use
 * get_wp_version() – Get the current wordpress version
 * get_tag_slug($title) – Get the tag slug from tag title
 * get_current_tag_slug($title) – Get the tag slug from the current tag title

## 安裝方式

Follow the below instruction for the installation of this plugin.

 1. Upload `wp-dev-utilities.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Use the functions wherever you need (use the `$wpdu` variable).

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈WP Development Utilities〉的開發相關工作。

參與者

 *   [ Fabio Cicerchia ](https://profiles.wordpress.org/phakko/)

[將〈WP Development Utilities〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wp-development-utilities)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/wp-development-utilities/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/wp-development-utilities/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/wp-development-utilities/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/wp-development-utilities/)。

## 中繼資料

 *  版本 **1.6**
 *  最後更新 **18 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 2.0.2 或更新版本 **
 *  已測試相容的 WordPress 版本 **2.6.3**
 *  語言
 * [English (US)](https://wordpress.org/plugins/wp-development-utilities/)
 * 標籤:
 * [dev](https://tw.wordpress.org/plugins/tags/dev/)[development](https://tw.wordpress.org/plugins/tags/development/)
   [utilities](https://tw.wordpress.org/plugins/tags/utilities/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wp-development-utilities/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/wp-development-utilities/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/wp-development-utilities/reviews/)

## 參與者

 *   [ Fabio Cicerchia ](https://profiles.wordpress.org/phakko/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/wp-development-utilities/)