Skip to content

Commit

Permalink
Admin Settings: Add multisite-safe deletion of all settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
costdev committed Nov 4, 2024
1 parent b239880 commit 7de54a1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions includes/class-admin-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,15 @@ public function reset_settings() {
}
}

/**
* Delete all settings.
*
* @return void
*/
public function delete_all_settings() {
delete_site_option( $this->option_name );
}

/**
* The Admin Notice to convey a Reset Operation has happened.
*
Expand Down

0 comments on commit 7de54a1

Please sign in to comment.