PluginProbe
Migrate Guru – Site Migration & Cloning / 6.72
Migrate Guru – Site Migration & Cloning v6.72
6.72 6.65 trunk 1.88 2.1 3.1 3.2 3.4 4.31 4.35 4.58 4.62 4.65 4.66 4.68 4.69 4.72 4.78 4.85 4.86 4.95 5.05 5.16 5.22 5.24 All 31 releases
migrate-guru / wp_cli.php

wp_cli.php in Migrate Guru – Site Migration & Cloning 6.72, at wp_cli.php

30 lines 679 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH')) exit;
3 if (!class_exists('MGWPCli')) :
4
5 require_once dirname( __FILE__ ) . '/recover.php';
6
7 class MGWPCli {
8 public $settings;
9 public $siteinfo;
10 public $bvinfo;
11 public $bvapi;
12
13 public function __construct($settings, $bvinfo, $bvsiteinfo, $bvapi) {
14 $this->settings = $settings;
15 $this->siteinfo = $bvsiteinfo;
16 $this->bvinfo = $bvinfo;
17 $this->bvapi = $bvapi;
18 }
19
20 public function get_connection_key() {
21 WP_CLI::line($this->bvinfo->getConnectionKey());
22 }
23
24 public function refresh_connection_key() {
25 MGRecover::refreshDefaultSecret($this->settings);
26 WP_CLI::success('Key Refreshed Successfully.');
27 }
28
29 }
30 endif;