/modules/vaultpress.php

  1. <?php 
  2. /** 
  3. * Module Name: VaultPress 
  4. * Module Description: Backups and security scans. 
  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: Performance-Security 
  12. * Additional Search Queries: vaultpress, backup, security 
  13. */ 
  14.  
  15. add_action( 'jetpack_modules_loaded', 'vaultpress_jetpack_stub' ); 
  16.  
  17. function vaultpress_jetpack_stub() { 
  18. if ( class_exists( 'VaultPress' ) || function_exists( 'vaultpress_contact_service' ) ) { 
  19. Jetpack::enable_module_configurable( __FILE__ ); 
  20. Jetpack::module_configuration_load( __FILE__, 'vaultpress_jetpack_configure' ); 
  21. add_filter( 'jetpack_module_free_text_vaultpress', 'vaultpress_jetpack_module_free_text' ); 
  22.  
  23. function vaultpress_jetpack_module_free_text() { 
  24. return __( 'Active', 'jetpack' ); 
  25.  
  26. function vaultpress_jetpack_configure() { 
  27. wp_safe_redirect( menu_page_url( 'vaultpress', false ) ); 
  28. exit; 
.