kollapsminoriteten/wp-content/plugins/jetpack/vendor/automattic/jetpack-backup/actions.php

20 lines
648 B
PHP
Raw Normal View History

2019-11-15 23:26:29 +01:00
<?php
/**
* Action Hooks for Jetpack Backup module.
*
* @package automattic/jetpack-backup
*/
if ( ! defined( 'ABSPATH' ) ) {
return;
}
// Clean up expired Helper Scripts from a scheduled event.
add_action( 'jetpack_backup_cleanup_helper_scripts', array( 'Automattic\\Jetpack\\Backup\\Helper_Script_Manager', 'cleanup_expired_helper_scripts' ) );
2021-07-23 11:58:50 +02:00
// Register REST routes.
add_action( 'rest_api_init', array( 'Automattic\\Jetpack\\Backup\\REST_Controller', 'register_rest_routes' ) );
2021-09-07 21:40:48 +02:00
// Set up package version hook.
add_filter( 'jetpack_package_versions', 'Automattic\\Jetpack\\Backup\\Package_Version::send_package_version_to_tracker' );