本文整理汇总了PHP中pb_backupbuddy::add_action方法的典型用法代码示例。如果您正苦于以下问题:PHP pb_backupbuddy::add_action方法的具体用法?PHP pb_backupbuddy::add_action怎么用?PHP pb_backupbuddy::add_action使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pb_backupbuddy
的用法示例。
在下文中一共展示了pb_backupbuddy::add_action方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
*/
/********** ACTIONS (admin) **********/
// Set up reminders if enabled.
if ( pb_backupbuddy::$options['backup_reminders'] == '1' ) {
pb_backupbuddy::add_action( array( 'load-update-core.php', 'wp_update_backup_reminder' ) );
pb_backupbuddy::add_action( array( 'post_updated_messages', 'content_editor_backup_reminder_on_update' ) );
}
// Display warning to network activate if running in normal mode on a MultiSite Network.
if ( is_multisite() && !pb_backupbuddy::$classes['core']->is_network_activated() ) {
pb_backupbuddy::add_action( array( 'all_admin_notices', 'multisite_network_warning' ) ); // BB should be network activated while on Multisite.
}
/********** AJAX (admin) **********/
pb_backupbuddy::add_ajax( 'importbuddy' ); // ImportBuddy download link.
pb_backupbuddy::add_ajax( 'repairbuddy' ); // RepairBuddy download link.
pb_backupbuddy::add_ajax( 'backup_status' ); // AJAX querying of backup status for manual backups.
pb_backupbuddy::add_ajax( 'destination_picker' ); // Remote destination picker.
pb_backupbuddy::add_ajax( 'hash' ); // Obtain MD5 hash of a backup file.
pb_backupbuddy::add_ajax( 'migration_picker' ); // Remote destination picker.
pb_backupbuddy::add_ajax( 'remote_send' ); // Remote destination picker.
示例2: __construct
function __construct()
{
if (false !== stristr(pb_backupbuddy::_GET('page'), 'backupbuddy') || 'true' == pb_backupbuddy::_GET('activate')) {
pb_backupbuddy::add_action(array('admin_notices', 'admin_notices'));
}
}
示例3: array
/* END HANDLING DATA STRUCTURE UPGRADE */
// Schedule daily housekeeping.
if (false === wp_next_scheduled(pb_backupbuddy::cron_tag('housekeeping'))) {
// if schedule does not exist...
backupbuddy_core::schedule_event(time() + 60 * 60 * 2, 'daily', pb_backupbuddy::cron_tag('housekeeping'), array());
// Add schedule.
}
/********** ACTIONS (admin) **********/
// Set up reminders if enabled.
if (pb_backupbuddy::$options['backup_reminders'] == '1') {
pb_backupbuddy::add_action(array('load-update-core.php', 'wp_update_backup_reminder'));
pb_backupbuddy::add_action(array('post_updated_messages', 'content_editor_backup_reminder_on_update'));
}
// Display warning to network activate if running in normal mode on a MultiSite Network.
if (is_multisite() && !backupbuddy_core::is_network_activated()) {
pb_backupbuddy::add_action(array('all_admin_notices', 'multisite_network_warning'));
// BB should be network activated while on Multisite.
}
/********** AJAX (admin) **********/
// Backup process.
pb_backupbuddy::add_ajax('backup_status');
// AJAX querying of backup status for manual backups.
pb_backupbuddy::add_ajax('stop_backup');
// Button to stop backup.
// Migrate process.
pb_backupbuddy::add_ajax('migration_picker');
// Remote destination picker.
pb_backupbuddy::add_ajax('migrate_status');
// Magic migration status polling.
// Remote destinations system.
pb_backupbuddy::add_ajax('remote_test');
示例4: load_plugin_textdomain
<?php
// This code runs everywhere. pb_backupbuddy::$options preloaded.
include 'classes/api0.php';
// Make localization happen.
if (!defined('PB_STANDALONE') && '1' != pb_backupbuddy::$options['disable_localization']) {
load_plugin_textdomain('it-l10n-backupbuddy', false, dirname(plugin_basename(__FILE__)) . '/lang');
}
/********** ACTIONS (global) **********/
pb_backupbuddy::add_action(array('pb_backupbuddy-cron_scheduled_backup', 'process_scheduled_backup'), 10, 5);
// Scheduled backup.
/********** AJAX (global) **********/
/********** CRON (global) **********/
pb_backupbuddy::add_cron('process_backup', 10, 1);
// Normal (manual) backup. Normal backups use cron system for scheduling each step when in modern mode. Classic mode skips this and runs all in one PHP process.
pb_backupbuddy::add_cron('final_cleanup', 10, 1);
// Cleanup after backup.
pb_backupbuddy::add_cron('remote_send', 10, 5);
// Manual remote destination sending.
pb_backupbuddy::add_cron('destination_send', 10, 3);
// Manual remote destination sending.
// Remote destination copying. Eventually combine into one function to pass to individual remote destination classes to process.
pb_backupbuddy::add_cron('process_s3_copy', 10, 6);
pb_backupbuddy::add_cron('process_remote_copy', 10, 3);
pb_backupbuddy::add_cron('process_dropbox_copy', 10, 2);
pb_backupbuddy::add_cron('process_rackspace_copy', 10, 5);
pb_backupbuddy::add_cron('process_ftp_copy', 10, 7);
pb_backupbuddy::add_cron('housekeeping', 10, 0);
pb_backupbuddy::add_cron('process_destination_copy', 10, 3);
// New copy mechanism.
/********** FILTERS (global) **********/