-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
\#25 Created a new page for Export/Import
- Loading branch information
1 parent
abe401d
commit 19614f8
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace PerkoCustomizerUI\Pages; | ||
|
||
use PerkoCustomizerUI\Base\BaseController; | ||
use PerkoCustomizerUI\Services\AdminSettingsService; | ||
use PerkoCustomizerUI\Services\DataService; | ||
|
||
class ExportImport extends BaseController { | ||
|
||
public function register() { | ||
add_action( 'admin_menu', [ $this, 'addExportImportPage' ] ); | ||
} | ||
|
||
function exportImportIndex() { | ||
require_once "$this->plugin_path/templates/exportImport.php"; | ||
} | ||
|
||
function addExportImportPage() { | ||
add_submenu_page( 'wpcui', 'Export/Import', 'Export/Import', 'manage_options', 'wpcui-export-import', [$this, 'exportImportIndex'] ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div class="wrap"> | ||
<h1>WPCUI Export/Import</h1> | ||
|
||
</div> |