Title: Define Constants
Author: ramon fincken
Published: <strong>Mai 11, 2011</strong>
Last modified: Tachwedd 22, 2021

---

Search plugins

Nid yw’r ategyn hwn **wedi cael ei ddiweddaru ers 3 ryddhad mawr**. Efallai nad 
yw’n cael ei gynnal bellach ac efallai bod materion cydnawsedd wrth gael ei ddefnyddio
gyda fersiynau mwy diweddar o WordPress.

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

# Define Constants

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

[Llwytho i lawr](https://downloads.wordpress.org/plugin/define-constants.1.2.1.zip)

 * [Details](https://cy.wordpress.org/plugins/define-constants/#description)
 * [Reviews](https://cy.wordpress.org/plugins/define-constants/#reviews)
 *  [Installation](https://cy.wordpress.org/plugins/define-constants/#installation)
 * [Development](https://cy.wordpress.org/plugins/define-constants/#developers)

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

## Disgrifiad

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)

## Lluniau Sgrin

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

## Gosod

 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.

## Cwestiynau Cyffredin

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

## Adolygiadau

There are no reviews for this plugin.

## Contributors & Developers

“Define Constants” is open source software. The following people have contributed
to this plugin.

Cyfranwyr

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

[Translate “Define Constants” into your language.](https://translate.wordpress.org/projects/wp-plugins/define-constants)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/define-constants/),
check out the [SVN repository](https://plugins.svn.wordpress.org/define-constants/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/define-constants/)
by [RSS](https://plugins.trac.wordpress.org/log/define-constants/?limit=100&mode=stop_on_copy&format=rss).

## Cofnod Newid

#### 1.2.1

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

#### 1.2

First public release

## Meta

 *  Version **1.2.1**
 *  Last updated **4 blynedd yn ôl**
 *  Active installations **50+**
 *  WordPress version ** 2.0.2 neu uwch **
 *  Tested up to **5.8.13**
 *  Language
 * [English (US)](https://wordpress.org/plugins/define-constants/)
 * Tags
 * [constant](https://cy.wordpress.org/plugins/tags/constant/)[Constants](https://cy.wordpress.org/plugins/tags/constants/)
   [define](https://cy.wordpress.org/plugins/tags/define/)[defines](https://cy.wordpress.org/plugins/tags/defines/)
 *  [Advanced View](https://cy.wordpress.org/plugins/define-constants/advanced/)

## Graddau

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/define-constants/reviews/)

## Cyfranwyr

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

## Cefnogaeth

Rhywbeth i’w ddweud? Angen help?

 [Gweld y fforwm cefnogi](https://wordpress.org/support/plugin/define-constants/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://donate.ramonfincken.com)