当前位置: 首页>>代码示例>>PHP>>正文


PHP pb_backupbuddy::add_action方法代码示例

本文整理汇总了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.
开发者ID:verbazend,项目名称:AWFA,代码行数:31,代码来源:init_admin.php

示例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'));
     }
 }
开发者ID:AgilData,项目名称:WordPress-Skeleton,代码行数:6,代码来源:pages.php

示例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');
开发者ID:adrianjonmiller,项目名称:vadsupplies,代码行数:31,代码来源:init_admin.php

示例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) **********/
开发者ID:FelixNong1990,项目名称:andy,代码行数:31,代码来源:init_global.php


注:本文中的pb_backupbuddy::add_action方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。