i have this define
define('DISALLOW_FILE_MODS', true);
but i need to execute a function with the define set to false. is it possible and in case how?
i have this define
define('DISALLOW_FILE_MODS', true);
but i need to execute a function with the define set to false. is it possible and in case how?
Is not possible to redefine a constant. Once a constant is defined, it can never be changed or undefined (From PHP Manual).
This is a constant, not a variable. The constants are not to change. You can not change it.
You should use a true variable instead.
You can read this: https://www.php.net/manual/en/function.define.php