This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Omphaloskepsis/plugins/jetpack/modules/vaultpress.php

33 lines
943 B
PHP
Raw Permalink Normal View History

2018-03-21 18:19:20 +00:00
<?php
/**
* Module Name: Data Backups
* Module Description: Daily or real-time backups.
* First Introduced: 0:1.2
* Sort Order: 32
* Deactivate: false
* Free: false
* Requires Connection: Yes
* Auto Activate: Yes
* Feature: Performance-Security
* Additional Search Queries: vaultpress, backup, security
*/
add_action( 'jetpack_modules_loaded', 'vaultpress_jetpack_stub' );
function vaultpress_jetpack_stub() {
if ( class_exists( 'VaultPress' ) || function_exists( 'vaultpress_contact_service' ) ) {
Jetpack::enable_module_configurable( __FILE__ );
Jetpack::module_configuration_load( __FILE__, 'vaultpress_jetpack_configure' );
add_filter( 'jetpack_module_free_text_vaultpress', 'vaultpress_jetpack_module_free_text' );
}
}
function vaultpress_jetpack_module_free_text() {
return __( 'Active', 'jetpack' );
}
function vaultpress_jetpack_configure() {
wp_safe_redirect( menu_page_url( 'vaultpress', false ) );
exit;
}