wordpress define constant if not defined
// Step 1: Check if the constant is not defined
if ( ! defined( 'YOUR_CONSTANT_NAME' ) ) {
// Step 2: Define the constant with the desired value
define( 'YOUR_CONSTANT_NAME', 'YOUR_CONSTANT_VALUE' );
}