| 1 |
<?php |
| 2 |
/** |
| 3 |
* Module Name: Backups and Scanning |
| 4 |
* Module Description: Protect your site with daily or real-time backups and automated virus scanning and threat detection. |
| 5 |
* First Introduced: 0:1.2 |
| 6 |
* Sort Order: 32 |
| 7 |
* Deactivate: false |
| 8 |
* Free: false |
| 9 |
* Requires Connection: Yes |
| 10 |
* Auto Activate: Yes |
| 11 |
* Feature: Security, Health |
| 12 |
* Additional Search Queries: backup, cloud backup, database backup, restore, wordpress backup, backup plugin, wordpress backup plugin, back up, backup wordpress, backwpup, vaultpress, backups, off-site backups, offsite backup, offsite, off-site, antivirus, malware scanner, security, virus, viruses, prevent viruses, scan, anti-virus, antimalware, protection, safe browsing, malware, wp security, wordpress security |
| 13 |
* Plans: personal, business, premium |
| 14 |
*/ |
| 15 |
|
| 16 |
add_action( 'jetpack_modules_loaded', 'vaultpress_jetpack_stub' ); |
| 17 |
|
| 18 |
function vaultpress_jetpack_stub() { |
| 19 |
if ( class_exists( 'VaultPress' ) || function_exists( 'vaultpress_contact_service' ) ) { |
| 20 |
Jetpack::enable_module_configurable( __FILE__ ); |
| 21 |
Jetpack::module_configuration_load( __FILE__, 'vaultpress_jetpack_configure' ); |
| 22 |
add_filter( 'jetpack_module_free_text_vaultpress', 'vaultpress_jetpack_module_free_text' ); |
| 23 |
} |
| 24 |
} |
| 25 |
|
| 26 |
function vaultpress_jetpack_module_free_text() { |
| 27 |
return __( 'Active', 'jetpack' ); |
| 28 |
} |
| 29 |
|
| 30 |
function vaultpress_jetpack_configure() { |
| 31 |
wp_safe_redirect( menu_page_url( 'vaultpress', false ) ); |
| 32 |
exit; |
| 33 |
} |
| 34 |
|