| @@ -34,9 +34,9 @@ | ||
| 34 | 34 | * |
| 35 | 35 | * @return string |
| 36 | 36 | */ |
| 37 | 37 | protected function get_endpoint() { |
| 38 | - return apply_filters( 'flywp_api_endpoint', 'https://app.flywp.com/api/site-api' ); | |
| 38 | + return apply_filters( 'flywp_api_endpoint', 'https://app.flywp.io/api/site-api' ); | |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * Send a GET request to the API. |
| @@ -89,8 +89,9 @@ | ||
| 89 | 89 | ] |
| 90 | 90 | ); |
| 91 | 91 | |
| 92 | 92 | if ( is_wp_error( $response ) ) { |
| 93 | + // Handle error if needed | |
| 93 | 94 | return false; |
| 94 | 95 | } |
| 95 | 96 | |
| 96 | 97 | $body = wp_remote_retrieve_body( $response ); |