| 1 |
<?php |
| 2 |
/** |
| 3 |
* Backup & Restore Settings |
| 4 |
* |
| 5 |
* Export and import your Forumax configuration. |
| 6 |
* |
| 7 |
* @package Forumax |
| 8 |
* @since 2.2.0 |
| 9 |
*/ |
| 10 |
|
| 11 |
if ( ! defined( 'ABSPATH' ) ) { |
| 12 |
exit; |
| 13 |
} |
| 14 |
|
| 15 |
// Backup & Restore Options Section. |
| 16 |
CSF::createSection( |
| 17 |
$prefix, |
| 18 |
array( |
| 19 |
'title' => esc_html__( 'Backup & Restore', 'forumax' ), |
| 20 |
'id' => 'bbpc_backup', |
| 21 |
'icon' => 'dashicons dashicons-database-export', |
| 22 |
'fields' => array( |
| 23 |
array( |
| 24 |
'id' => 'bbpc_export_import', |
| 25 |
'type' => 'backup', |
| 26 |
'title' => esc_html__( 'Settings Backup', 'forumax' ), |
| 27 |
'subtitle' => esc_html__( 'Export your current settings to save a backup, or import previously saved settings to restore your configuration.', 'forumax' ), |
| 28 |
), |
| 29 |
), |
| 30 |
) |
| 31 |
); |
| 32 |
|