vaultpress.php
| 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: No |
| 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, security, complete |
| 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 | add_filter( 'jetpack_module_configuration_url_vaultpress', 'vaultpress_jetpack_configure_url' ); |
| 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_url() { |
| 31 | include_once( ABSPATH . '/wp-admin/includes/plugin.php' ); |
| 32 | return menu_page_url( 'vaultpress', false ); |
| 33 | } |
| 34 |