So I may have cracked it.
Can you just double check, if I’ve misinterpreted the use of this variable.
$mt_options = mtnc_get_plugin_options(true);
$status = $mt_options[‘state’];
it seems $status is ‘1’ when maintenance is on and ‘0’ when I turn it off.
Hey
It seems mtnc_load_maintenance_page takes an argument.
“Uncaught ArgumentCountError: Too few arguments to function mtnc_load_maintenance_page(), 0 passed in”
I’m curious, how does your admin bar ‘Maintenance is On”/”Maintenance is Off” distinguish the current state of the plugin?