get_wp_config_path(); $can_write = is_writable($wp_config_path); ?>

SUNRISE constant to be defined and set to true in your wp-config.php file.', 'wp-ultimo'); ?>

define('SUNRISE', true);

%s.', 'wp-ultimo'), '$table_prefix' ); ?>

__('Security check failed.', 'wp-ultimo') )); return; } // Check if SUNRISE is already defined if (defined('SUNRISE') && SUNRISE === true) { wp_send_json_success(array( 'message' => __('SUNRISE constant is already defined.', 'wp-ultimo') )); return; } // Try to update wp-config.php $result = WP_Config::get_instance()->inject_wp_config_constant('SUNRISE', true); if (is_wp_error($result)) { wp_send_json_error(array( 'message' => $result->get_error_message() )); return; } if ($result === false) { wp_send_json_error(array( 'message' => __('Failed to update wp-config.php. Try adding the constant manually.', 'wp-ultimo') )); return; } wp_send_json_success(array( 'message' => __('SUNRISE constant added successfully! Reloading...', 'wp-ultimo') )); } }