Title: Define Constants
Author: ramon fincken
Published: <strong>2011 年 5 月 11 日</strong>
Last modified: 2021 年 11 月 22 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/define-constants.svg)

# Define Constants

 作者：[ramon fincken](https://profiles.wordpress.org/ramon-fincken/)

[下载](https://downloads.wordpress.org/plugin/define-constants.1.2.1.zip)

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

 [支持](https://wordpress.org/support/plugin/define-constants/)

## 描述

GUI in backend to define constants without any programming knowledge. Every file
in your theme has access to your constant.
No need to edit a functions.php file 
or a separate plugin file anymore Results in constants like: define(‘MY_CONSTANT’,
$value);

Options: Re-arrange constants (Drag and drop)
 Protect constants as “internal value”
Optional description per constant 🙂

Coding by:
 [Danny van Kooten](https://wordpress.org/extend/plugins/profile/dvankooten)
[MijnPress.nl](http://www.mijnpress.nl) [Twitter profile](http://twitter.com/#!/ramonfincken)
[More plugins](https://wordpress.org/extend/plugins/profile/ramon-fincken)

## 屏幕截图

 * [[
 * Default view [Fullscreen Screenshot 1](https://s.w.org/extend/plugins/define-constants/screenshot-1.png)

## 安装

 1. Upload directory `define-constants` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Create some constants
 4. You are ready to go! Every file in your theme has access to your constant.

## 常见问题

### How does this plugin work?

If you have a contstant named MY_TWITTER_URL … You can use something like this in
your PHP template file: `<a href="<?php echo MY_TWITTER_URL;?>">Twitter</a>`
 Or
install a PHP in post plugin and use

### I have a lot of questions and I want support where can I go?

[http://pluginsupport.mijnpress.nl/](http://pluginsupport.mijnpress.nl/) or drop
me a tweet to notify me of your support topic over here.
 I always check my tweets,
so mention my name with @ramonfincken and your problem.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ ramon fincken ](https://profiles.wordpress.org/ramon-fincken/)

[帮助将「Define Constants」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/define-constants)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.2.1

Bugfix: Style extra div removal. Thanks to Alex for reporting

#### 1.2

First public release

## 额外信息

 *  版本 **1.2.1**
 *  最后更新：**5 年前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 2.0.2 或更高版本 **
 *  已测试的最高版本为 **5.8.13**
 *  语言
 * [English (US)](https://wordpress.org/plugins/define-constants/)
 * 标签
 * [constant](https://cn.wordpress.org/plugins/tags/constant/)[Constants](https://cn.wordpress.org/plugins/tags/constants/)
   [define](https://cn.wordpress.org/plugins/tags/define/)[defines](https://cn.wordpress.org/plugins/tags/defines/)
 *  [高级视图](https://cn.wordpress.org/plugins/define-constants/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ ramon fincken ](https://profiles.wordpress.org/ramon-fincken/)

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://donate.ramonfincken.com)