Skip to content

Commit

Permalink
fix: remove const FLYWP_API_ENDPOINT
Browse files Browse the repository at this point in the history
  • Loading branch information
itsrafsanjani committed Sep 13, 2024
1 parent 8aec760 commit 9e92b72
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions flywp.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ final class FlyWP_Plugin {
*/
public $version = '1.3.1';

/**
* API Endpoint.
*
* @var string
*/
public $api_endpoint = 'https://app.flywp.com/api/site-api';

/**
* Plugin Constructor.
*
Expand All @@ -75,10 +68,6 @@ private function define_constants() {
define( 'FLYWP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'FLYWP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );

if ( ! defined( 'FLYWP_API_ENDPOINT' ) ) {
define( 'FLYWP_API_ENDPOINT', $this->api_endpoint );
}

if ( ! defined( 'FLYWP_API_KEY' ) ) {
define( 'FLYWP_API_KEY', '' );
}
Expand Down
2 changes: 1 addition & 1 deletion includes/FlyApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function cache_toggle( $action = 'enable', $type = 'fastcgi' ) {
* @return string
*/
protected function get_endpoint() {
return apply_filters( 'flywp_api_endpoint', FLYWP_API_ENDPOINT );
return apply_filters( 'flywp_api_endpoint', 'https://app.flywp.com/api/site-api' );
}

/**
Expand Down

0 comments on commit 9e92b72

Please sign in to comment.