at path:
ROOT
/
wp-content
/
plugins
/
migrate-guru
/
wp_api.php
run:
R
W
Run
admin
DIR
2025-05-31 10:24:17
R
W
Run
callback
DIR
2025-05-31 10:24:17
R
W
Run
css
DIR
2025-05-31 10:24:17
R
W
Run
fonts
DIR
2025-05-31 10:24:17
R
W
Run
img
DIR
2025-05-31 10:24:17
R
W
Run
public_keys
DIR
2025-05-31 10:24:17
R
W
Run
account.php
7.14 KB
2025-05-31 10:41:27
R
W
Run
Delete
Rename
helper.php
7.22 KB
2025-05-31 10:41:28
R
W
Run
Delete
Rename
info.php
7.52 KB
2025-05-31 10:41:26
R
W
Run
Delete
Rename
license.txt
19.46 KB
2025-05-31 10:24:17
R
W
Run
Delete
Rename
migrateguru.php
6.42 KB
2025-05-31 10:41:26
R
W
Run
Delete
Rename
readme.txt
8.01 KB
2025-05-31 10:24:17
R
W
Run
Delete
Rename
recover.php
1.71 KB
2025-05-31 10:41:28
R
W
Run
Delete
Rename
wp_actions.php
2.33 KB
2025-05-31 10:41:27
R
W
Run
Delete
Rename
wp_admin.php
6.24 KB
2025-05-31 10:41:26
R
W
Run
Delete
Rename
wp_api.php
1.04 KB
2025-05-31 10:41:26
R
W
Run
Delete
Rename
wp_cli.php
679 By
2025-05-31 10:41:28
R
W
Run
Delete
Rename
wp_db.php
6.27 KB
2025-05-31 10:41:27
R
W
Run
Delete
Rename
wp_login_whitelabel.php
1.34 KB
2025-05-31 10:41:28
R
W
Run
Delete
Rename
wp_settings.php
2.06 KB
2025-05-31 10:41:27
R
W
Run
Delete
Rename
wp_site_info.php
2.47 KB
2025-05-31 10:41:27
R
W
Run
Delete
Rename
error_log
up
📄
wp_api.php
Save
<?php if (!defined('ABSPATH')) exit; if (!class_exists('MGWPAPI')) : class MGWPAPI { public $settings; public function __construct($settings) { $this->settings = $settings; } public function pingbv($method, $body, $public = false) { if ($public) { return $this->do_request($method, $body, $public); } else { $api_public_key = $this->settings->getOption('bvApiPublic'); if (!empty($api_public_key) && (strlen($api_public_key) >= 32)) { return $this->do_request($method, $body, $api_public_key); } } } public function do_request($method, $body, $pubkey) { $account = MGAccount::find($this->settings, $pubkey); if (isset($account)) { $url = $account->authenticatedUrl($method); return $this->http_request($url, $body); } } public function http_request($url, $body, $headers = array()) { $_body = array( 'method' => 'POST', 'timeout' => 15, 'body' => $body ); if (!empty($headers)) { $_body['headers'] = $headers; } return wp_remote_post($url, $_body); } } endif;