Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress define constant if not defined

<?php
define("AMOUNT_OF_APPLES", 12);
if(defined("AMOUNT_OF_APPLES")){
   //here you go
   echo AMOUNT_OF_APPLES;
}

//output: 12
?>
 
PREVIOUS NEXT
Tagged: #wordpress #define #constant #defined
ADD COMMENT
Topic
Name
9+9 =