Answers for "wordpress define constant if not 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 define constant if not defined"

Browse Popular Code Answers by Language