diff --git a/includes/classes/wp-maintenance-mode.php b/includes/classes/wp-maintenance-mode.php index 9c351b5..9c6eef6 100644 --- a/includes/classes/wp-maintenance-mode.php +++ b/includes/classes/wp-maintenance-mode.php @@ -98,6 +98,9 @@ private function __construct() { add_action( 'otter_form_after_submit', array( $this, 'otter_add_subscriber' ) ); if ( isset( $this->plugin_settings['design']['page_id'] ) && get_option( 'wpmm_new_look' ) && get_post_status( $this->plugin_settings['design']['page_id'] ) === 'private' ) { + if ( function_exists( 'wp_functionality_constants' ) ) { + wp_functionality_constants(); + } wp_publish_post( $this->plugin_settings['design']['page_id'] ); }