diff --git a/actions.toml b/actions.toml
index b9b966c..4524def 100644
--- a/actions.toml
+++ b/actions.toml
@@ -10,7 +10,6 @@ description = "Change the public access of the app."
ask = "Is it a public app ?"
default = true
-
[reset_default_nginx]
name = "Reset the nginx config for this app."
command = "/bin/bash scripts/actions/reset_default_system nginx"
@@ -39,3 +38,13 @@ command = "/bin/bash scripts/actions/reset_default_app"
# accepted_return_codes = [0, 1, 2, 3] # optional
accepted_return_codes = [0]
description = "Reset the app to its default configuration to try to fix potential issues.
This action won't remove any data added to the app.
However, if you have modified any configuration, it will be overwritten."
+
+
+[disable_maintenance]
+name = "Disable the maintenance mode of Wordpress"
+command = "/bin/bash scripts/actions/disable_maintenance"
+# user = "root" # optional
+# cwd = "/" # optional
+# accepted_return_codes = [0, 1, 2, 3] # optional
+accepted_return_codes = [0]
+description = "Disable the maintenance mode of Wordpress if you're stuck after an upgrade"
diff --git a/scripts/actions/disable_maintenance b/scripts/actions/disable_maintenance
new file mode 100755
index 0000000..6c3c679
--- /dev/null
+++ b/scripts/actions/disable_maintenance
@@ -0,0 +1,56 @@
+#!/bin/bash
+
+#=================================================
+# GENERIC STARTING
+#=================================================
+# IMPORT GENERIC HELPERS
+#=================================================
+
+source scripts/_common.sh
+source /usr/share/yunohost/helpers
+
+#=================================================
+# MANAGE SCRIPT FAILURE
+#=================================================
+
+# Exit if an error occurs during the execution of the script
+ynh_abort_if_errors
+
+#=================================================
+# RETRIEVE ARGUMENTS
+#=================================================
+
+app=${YNH_APP_INSTANCE_NAME}
+
+final_path=$(ynh_app_setting_get --app=$app --key=final_path)
+
+#=================================================
+# CHECK IF ARGUMENTS ARE CORRECT
+#=================================================
+
+#=================================================
+# CHECK IF AN ACTION HAS TO BE DONE
+#=================================================
+
+# Check the current status of the maintenance mode
+
+if [ ! -e "$final_path/.maintenance" ]
+then
+ ynh_die --message="Wordpress isn't currently under maintenance." --ret_code=0
+fi
+
+#=================================================
+# SPECIFIC ACTION
+#=================================================
+# DISABLE THE MAINTENANCE MODE
+#=================================================
+
+ynh_script_progression --message="Disabling maintenance mode..."
+
+ynh_secure_remove --file="$final_path/.maintenance"
+
+#=================================================
+# END OF SCRIPT
+#=================================================
+
+ynh_script_progression --message="Execution completed" --last