I need a override wp_maintenance() function from /wp-includes/load.php file. I have to add a condition in this function. I tried with add_filter() but unfortunately it didn't work. Could someone suggest how I can override this function?
Thank you and best regards!
WP_CONTENT_DIR . '/maintenance.php'
which you may use as a hook