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

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的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://cn.wordpress.org/plugins/wp-development-utilities/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-development-utilities/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-development-utilities/#installation)
 * [开发进展](https://cn.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 或更高版本 **
 *  已测试的最高版本为 **2.6.3**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-development-utilities/)
 * 标签
 * [dev](https://cn.wordpress.org/plugins/tags/dev/)[development](https://cn.wordpress.org/plugins/tags/development/)
   [utilities](https://cn.wordpress.org/plugins/tags/utilities/)
 *  [高级视图](https://cn.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/)