Skip to content

Commit 1f2e56f

Browse files
committed
add 1.7.2 update script
1 parent b317915 commit 1f2e56f

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?php
2+
/**
3+
* Update class for version 1.7.2.
4+
*
5+
* @package Progress_Planner
6+
*/
7+
8+
namespace Progress_Planner\Update;
9+
10+
/**
11+
* Update class for version 1.7.2.
12+
*
13+
* @package Progress_Planner
14+
*/
15+
class Update_172 {
16+
17+
const VERSION = '1.7.2';
18+
19+
/**
20+
* Run the update.
21+
*
22+
* @return void
23+
*/
24+
public function run() {
25+
// Delete the 'progress_planner_pro_license_key' entry from wp_options table.
26+
$this->delete_pro_license_key();
27+
}
28+
29+
/**
30+
* Delete the 'progress_planner_pro_license_key' entry from wp_options table.
31+
*
32+
* @return void
33+
*/
34+
private function delete_pro_license_key() {
35+
\delete_option( 'progress_planner_pro_license_key' );
36+
}
37+
}

0 commit comments

Comments
 (0)