Answers for "wordpress check if constant is defined"

PHP
1

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
?>
Posted by: Guest on April-09-2021

Code answers related to "wordpress check if constant is defined"

Browse Popular Code Answers by Language