Define Constants

November 22, 2021

Define Constants Plugin

GUI in backend to define constants without any programming knowledge. Every file in your theme has access to your constant.

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
MijnPress.nlTwitter profileMore plugins

Installation

  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.

Screenshots

FAQ

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

Changelog

1.2.1

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

1.2

First public release

Details

  • Version: 1.2.1
  • Active installations: 60
  • WordPress Version: 2.0.2
  • Tested up to: 5.8.10

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars