Title: DX Plugin Base
Author: Mario Peshev
Published: <strong>2012 年 2 月 8 日</strong>
Last modified: 2015 年 8 月 21 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/dx-plugin-base.svg)

# DX Plugin Base

 作者：[Mario Peshev](https://profiles.wordpress.org/nofearinc/)

[下载](https://downloads.wordpress.org/plugin/dx-plugin-base.1.6.zip)

 * [详情](https://cn.wordpress.org/plugins/dx-plugin-base/#description)
 * [评价](https://cn.wordpress.org/plugins/dx-plugin-base/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/dx-plugin-base/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/dx-plugin-base/#developers)

 [支持](https://wordpress.org/support/plugin/dx-plugin-base/)

## 描述

This is a fully-functional sample skeleton plugin for plugin developers.

It serves as a startup code providing reference and working codebase for:

 * defining custom post types and taxonomies
 * creating admin pages
 * sample code of the Settings API implementation for admin pages
 * registration of activate/deactivate hooks
 * adding metaboxes on pages
 * creating sample shortcode
 * creating sample widget
 * creating AJAX requests storing sample data in the database
 * creating AJAX requests for fetching remote data with the HTTP API
 * adding frontend styles/scripts the right way
 * adding admin styles/scripts the right way
 * defining common constants for further use

and more. **Use it freely as your plugin startup snippet**.

Take the code as is for test and learning or use it when creating plugins for a 
solid base. To be extended with
 widget and shortcode samples.

## 安装

Upload the DX Plugin Base plugin to your blog and activate it. It would work as 
is.

Extend or comment whenever appropriate based on your assignment.

## 常见问题

  Is it compatible with latest WordPress?

Yes, it is, as well as with the latest PHP.

I’ve removed the ‘pass-by-reference’ call for all array( $this, … ) entries as it’s
deprecated since 5.3.0. If you happen to use 5.2.4, you can replace all $this in
arrays with &$this or better update PHP version.

## 评价

![](https://secure.gravatar.com/avatar/7b753986081303fef27110029256c6314563b24ae54c551184fb0cdd74a21496?
s=60&d=retro&r=g)

### 󠀁[Good plugin base](https://wordpress.org/support/topic/good-plugin-base/)󠁿

 [Ivan Mudrik](https://profiles.wordpress.org/meatman89fs/) 2016 年 9 月 3 日

Nice starting for new plugin development.

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/dx-plugin-base/reviews/)

## 贡献者及开发者

「DX Plugin Base」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Mario Peshev ](https://profiles.wordpress.org/nofearinc/)
 *   [ DevriX ](https://profiles.wordpress.org/devrix/)

[帮助将「DX Plugin Base」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/dx-plugin-base)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/dx-plugin-base/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/dx-plugin-base/)，或通过[RSS](https://plugins.trac.wordpress.org/log/dx-plugin-base/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/dx-plugin-base/)。

## 更新日志

#### 1.6

 * Widget update for PHP compatibility with 4.3

#### 1.5

 * Add custom fields to metaboxes
 * Save custom fields

#### 1.4

 * Refreshing

#### 1.3

 * Add page with AJAX options
 * Introduce AJAX call for storing data to DB
 * Introduce AJAX call to fetch title from remote HTTP resouce

#### 1.2

 * Fix small issues and prevent some unexpected activities

#### 1.0

 * Initial commit

## 额外信息

 *  版本 **1.6**
 *  最后更新：**11 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.1 或更高版本 **
 *  已测试的最高版本为 **4.3.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/dx-plugin-base/)
 * 标签
 * [BASE](https://cn.wordpress.org/plugins/tags/base/)[foundation](https://cn.wordpress.org/plugins/tags/foundation/)
   [framework](https://cn.wordpress.org/plugins/tags/framework/)[skeleton](https://cn.wordpress.org/plugins/tags/skeleton/)
   [startup](https://cn.wordpress.org/plugins/tags/startup/)
 *  [高级视图](https://cn.wordpress.org/plugins/dx-plugin-base/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/dx-plugin-base/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/dx-plugin-base/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/dx-plugin-base/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/dx-plugin-base/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/dx-plugin-base/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/dx-plugin-base/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/dx-plugin-base/reviews/)

## 贡献者

 *   [ Mario Peshev ](https://profiles.wordpress.org/nofearinc/)
 *   [ DevriX ](https://profiles.wordpress.org/devrix/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/dx-plugin-base/)