@@ -222,6 +222,9 @@ discard block |
||
| 222 | 222 | $this->delete_cache(); |
| 223 | 223 | } |
| 224 | 224 | |
| 225 | + /** |
|
| 226 | + * @param string|false $is_active |
|
| 227 | + */ |
|
| 225 | 228 | public function set_active( $is_active ) { |
| 226 | 229 | update_option( $this->option_name . 'active', $is_active ); |
| 227 | 230 | $this->delete_cache(); |
@@ -560,6 +563,9 @@ discard block |
||
| 560 | 563 | wp_die(); |
| 561 | 564 | } |
| 562 | 565 | |
| 566 | + /** |
|
| 567 | + * @param string $action |
|
| 568 | + */ |
|
| 563 | 569 | public function send_mothership_request( $action ) { |
| 564 | 570 | $api_params = array( |
| 565 | 571 | 'edd_action' => $action, |