{"id":12792,"date":"2011-05-11T15:14:21","date_gmt":"2011-05-11T15:14:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/define-constants\/"},"modified":"2021-11-22T11:40:09","modified_gmt":"2021-11-22T11:40:09","slug":"define-constants","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/define-constants\/","author":1849791,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.1","stable_tag":"1.2.1","tested":"5.8.13","requires":"2.0.2","requires_php":"","requires_plugins":"","header_name":"Define Constants","header_author":"Ramon Fincken, Danny van Kooten","header_description":"","assets_banners_color":"","last_updated":"2021-11-22 11:40:09","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/donate.ramonfincken.com","header_plugin_uri":"","header_author_uri":"http:\/\/www.mijnpress.nl","rating":0,"author_block_rating":0,"active_installs":50,"downloads":2907,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.2":{"tag":"1.2","author":"ramon fincken","date":"2011-05-20 12:47:14"},"1.2.1":{"tag":"1.2.1","author":"ramon fincken","date":"2021-11-22 11:40:09"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.2","1.2.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2633468,"resolution":"1","location":"plugin"}},"screenshots":{"1":"Default view\n<a href=\"http:\/\/s.wordpress.org\/extend\/plugins\/define-constants\/screenshot-1.png\">Fullscreen Screenshot 1<\/a><br \/>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[19328,23022,2410,23134],"plugin_category":[],"plugin_contributors":[79297],"plugin_business_model":[],"class_list":["post-12792","plugin","type-plugin","status-publish","hentry","plugin_tags-constant","plugin_tags-constants","plugin_tags-define","plugin_tags-defines","plugin_contributors-ramon-fincken","plugin_committers-ramon-fincken"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/define-constants.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/define-constants\/trunk\/screenshot-1.png?rev=2633468","caption":"Default view\n<a href=\"http:\/\/s.wordpress.org\/extend\/plugins\/define-constants\/screenshot-1.png\">Fullscreen Screenshot 1<\/a><br \/>"}],"raw_content":"<!--section=description-->\n<p>GUI in backend to define constants without any programming knowledge. Every file in your theme has access to your constant.<br \/>No need to edit a functions.php file or a separate plugin file anymore<br \/>\nResults in constants like: define('MY_CONSTANT',$value);<br \/><br \/>\nOptions: Re-arrange constants (Drag and drop)<br \/>\nProtect constants as \"internal value\"<br \/>\nOptional description per constant :)<\/p>\n\n<p><br \/>\n<br \/>Coding by: \n<a href=\"http:\/\/wordpress.org\/extend\/plugins\/profile\/dvankooten\">Danny van Kooten<\/a>\n<a href=\"http:\/\/www.mijnpress.nl\">MijnPress.nl<\/a> <a href=\"http:\/\/twitter.com\/#!\/ramonfincken\">Twitter profile<\/a> <a href=\"http:\/\/wordpress.org\/extend\/plugins\/profile\/ramon-fincken\">More plugins<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload directory <code>define-constants<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Create some constants<\/li>\n<li>You are ready to go! Every file in your theme has access to your constant.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20does%20this%20plugin%20work%3F'><h3>How does this plugin work?<\/h3><\/dt>\n<dd><p>If you have a contstant named MY_TWITTER_URL ... You can use something like this in your PHP template file: <code>&lt;a href=\"&lt;?php echo MY_TWITTER_URL;?&gt;\"&gt;Twitter&lt;\/a&gt;<\/code><br \/>\nOr install a PHP in post plugin and use <\/p><\/dd>\n<dt id='i%20have%20a%20lot%20of%20questions%20and%20i%20want%20support%20where%20can%20i%20go%3F'><h3>I have a lot of questions and I want support where can I go?<\/h3><\/dt>\n<dd><p><a href=\"http:\/\/pluginsupport.mijnpress.nl\/\">http:\/\/pluginsupport.mijnpress.nl\/<\/a> or drop me a tweet to notify me of your support topic over here.<br \/>\nI always check my tweets, so mention my name with @ramonfincken and your problem.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.1<\/h4>\n\n<p>Bugfix: Style extra div removal. Thanks to Alex for reporting<\/p>\n\n<h4>1.2<\/h4>\n\n<p>First public release<\/p>","raw_excerpt":"GUI in backend to define constants without any programming knowledge. Every file in your theme has access to your constant.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/12792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=12792"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ramon-fincken"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=12792"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=12792"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=12792"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=12792"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=12792"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=12792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}