Completed
Push — renovate/mocha-6.x ( 3f58d3...0b16d4 )
by
unknown
07:09
created

vaultpress.php ➔ vaultpress_jetpack_configure_url()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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
		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
	return menu_page_url( 'vaultpress', false );
32
}
33