← All changes
|
freemius/includes/managers/class-fs-gdpr-manager.php
+12
-0
8.0.2
→
2.1.2
View file →
| @@ -88,8 +88,20 @@ | ||
| 88 | 88 | /** |
| 89 | 89 | * @author Leo Fajardo (@leorw) |
| 90 | 90 | * @since 2.1.0 |
| 91 | 91 | * |
| 92 | + * @return bool|null | |
| 93 | + */ | |
| 94 | + public function is_required() { | |
| 95 | + return isset( $this->_data['required'] ) ? | |
| 96 | + $this->_data['required'] : | |
| 97 | + null; | |
| 98 | + } | |
| 99 | + | |
| 100 | + /** | |
| 101 | + * @author Leo Fajardo (@leorw) | |
| 102 | + * @since 2.1.0 | |
| 103 | + * | |
| 92 | 104 | * @param bool $is_required |
| 93 | 105 | */ |
| 94 | 106 | public function store_is_required( $is_required ) { |
| 95 | 107 | $this->update_option( 'required', $is_required ); |