本文整理汇总了PHP中pb_backupbuddy::add_ajax方法的典型用法代码示例。如果您正苦于以下问题:PHP pb_backupbuddy::add_ajax方法的具体用法?PHP pb_backupbuddy::add_ajax怎么用?PHP pb_backupbuddy::add_ajax使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pb_backupbuddy
的用法示例。
在下文中一共展示了pb_backupbuddy::add_ajax方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: size
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.
pb_backupbuddy::add_ajax( 'migrate_status' ); // Magic migration status polling.
pb_backupbuddy::add_ajax( 'ajax_controller_callback_function' ); // Tell WordPress about this AJAX callback.
pb_backupbuddy::add_ajax( 'icicle' ); // Server info page icicle.
pb_backupbuddy::add_ajax( 'remote_test' ); // Remote destination testing.
pb_backupbuddy::add_ajax( 'refresh_site_size' ); // Server info page site size update.
pb_backupbuddy::add_ajax( 'refresh_site_size_excluded' ); // Server info page site size (sans exclusions) update.
pb_backupbuddy::add_ajax( 'refresh_database_size' ); // Server info page database size update.
pb_backupbuddy::add_ajax( 'refresh_database_size_excluded' ); // Server info page site size (sans exclusions) update.
pb_backupbuddy::add_ajax( 'phpinfo' ); // Server info page extended PHPinfo thickbox.
pb_backupbuddy::add_ajax( 'exclude_tree' ); // Directory exclusions picker for settings page.
pb_backupbuddy::add_ajax( 'download_archive' ); // Directory exclusions picker for settings page.
pb_backupbuddy::add_ajax( 'set_backup_note' ); // Used for setting a note on a backup archive in the backup listing.
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
if ( ( !is_multisite() ) || ( is_multisite() && is_network_admin() ) ) { // Only show if standalon OR in main network admin.
pb_backupbuddy::add_dashboard_widget( 'stats', 'BackupBuddy', 'godmode' );
}
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter( 'plugin_row_meta', 10, 2 );
示例2: array
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) **********/
pb_backupbuddy::add_ajax('backupbuddy');
// New AJAX wrapper to begin passing all AJAX through this single call to reduce number of registered hooks. POST or GET the var function containing the function.php file to run within controllers/ajax.
//pb_backupbuddy::add_ajax( 'ajax_controller_callback_function' ); // Tell WordPress about this AJAX callback.
// Register BackupBuddy API. As of BackupBuddy v5.0. Access credentials will be checked within callback.
add_action('wp_ajax_backupbuddy_api', array(pb_backupbuddy::$_ajax, 'api'));
add_action('wp_ajax_nopriv_backupbuddy_api', array(pb_backupbuddy::$_ajax, 'api'));
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
if (!is_multisite() || is_multisite() && is_network_admin()) {
// Only show if standalon OR in main network admin.
pb_backupbuddy::add_dashboard_widget('stats', 'BackupBuddy v' . pb_backupbuddy::settings('version'), 'godmode');
}
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter('plugin_row_meta', 10, 2);
/********** PAGES (admin) **********/
$icon = '';
示例3: array
// Quick Start form modal.
pb_backupbuddy::add_ajax('profile_settings');
// Settings page backup profile editing.
pb_backupbuddy::add_ajax('email_error_test');
// Test email error notification.
pb_backupbuddy::add_ajax('remotesend_details');
// Display backup integrity status.
pb_backupbuddy::add_ajax('remotesend_abort');
// Abort an in-process remote destination send.
pb_backupbuddy::add_ajax('destination_ftp_pathpicker');
// FTP destination path picker.
pb_backupbuddy::add_ajax('rollback');
// Database roll back feature.
pb_backupbuddy::add_ajax('deploy');
// Database roll back feature.
pb_backupbuddy::add_ajax('getMainLog');
// Output main log file text.
// Register BackupBuddy API. As of BackupBuddy v5.0. Access credentials will be checked within callback.
add_action('wp_ajax_backupbuddy_api', array(pb_backupbuddy::$_ajax, 'api'));
add_action('wp_ajax_nopriv_backupbuddy_api', array(pb_backupbuddy::$_ajax, 'api'));
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
//if ( pb_backupbuddy::$options['dashboard_stats'] == '1' ) {
if (!is_multisite() || is_multisite() && is_network_admin()) {
// Only show if standalon OR in main network admin.
pb_backupbuddy::add_dashboard_widget('stats', 'BackupBuddy v' . pb_backupbuddy::settings('version'), 'godmode');
}
//}
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter('plugin_row_meta', 10, 2);
/********** PAGES (admin) **********/
示例4:
//pb_backupbuddy::add_ajax( 'quickstart_stash_test' ); // Getting Started Quick Start Stash auth testing.
pb_backupbuddy::add_ajax('quickstart_skip');
// Quick Start form saving.
pb_backupbuddy::add_ajax('quickstart_form');
// Quick Start form saving.
pb_backupbuddy::add_ajax('quickstart');
// Quick Start form modal.
pb_backupbuddy::add_ajax('profile_settings');
// Settings page backup profile editing.
pb_backupbuddy::add_ajax('email_error_test');
// Test email error notification.
pb_backupbuddy::add_ajax('remotesend_details');
// Display backup integrity status.
pb_backupbuddy::add_ajax('remotesend_abort');
// Abort an in-process remote destination send.
pb_backupbuddy::add_ajax('destination_ftp_pathpicker');
// FTP destination path picker.
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
//if ( pb_backupbuddy::$options['dashboard_stats'] == '1' ) {
if (!is_multisite() || is_multisite() && is_network_admin()) {
// Only show if standalon OR in main network admin.
pb_backupbuddy::add_dashboard_widget('stats', 'BackupBuddy', 'godmode');
}
//}
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter('plugin_row_meta', 10, 2);
/********** PAGES (admin) **********/
$icon = '';
if (is_multisite() && backupbuddy_core::is_network_activated() && !defined('PB_DEMO_MODE')) {
// Multisite installation.
示例5:
// Quick Start form saving.
pb_backupbuddy::add_ajax('quickstart_form');
// Quick Start form saving.
pb_backupbuddy::add_ajax('quickstart');
// Quick Start form modal.
pb_backupbuddy::add_ajax('profile_settings');
// Settings page backup profile editing.
pb_backupbuddy::add_ajax('email_error_test');
// Test email error notification.
pb_backupbuddy::add_ajax('remotesend_details');
// Display backup integrity status.
pb_backupbuddy::add_ajax('remotesend_abort');
// Abort an in-process remote destination send.
pb_backupbuddy::add_ajax('destination_ftp_pathpicker');
// FTP destination path picker.
pb_backupbuddy::add_ajax('rollback');
// Database roll back feature.
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
//if ( pb_backupbuddy::$options['dashboard_stats'] == '1' ) {
if (!is_multisite() || is_multisite() && is_network_admin()) {
// Only show if standalon OR in main network admin.
pb_backupbuddy::add_dashboard_widget('stats', 'BackupBuddy v' . pb_backupbuddy::settings('version'), 'godmode');
}
//}
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter('plugin_row_meta', 10, 2);
/********** PAGES (admin) **********/
$icon = '';
if (is_multisite() && backupbuddy_core::is_network_activated() && !defined('PB_DEMO_MODE')) {
// Multisite installation.
示例6:
// Display backup step status in thickbox for recent backups section.
pb_backupbuddy::add_ajax('view_status_log');
// Display status log in thickbox for recent backups section.
pb_backupbuddy::add_ajax('importbuddy');
// ImportBuddy download link.
pb_backupbuddy::add_ajax('repairbuddy');
// RepairBuddy download link.
pb_backupbuddy::add_ajax('hash');
// Obtain MD5 hash of a backup file.
pb_backupbuddy::add_ajax('ajax_controller_callback_function');
// Tell WordPress about this AJAX callback.
pb_backupbuddy::add_ajax('disalert');
// Dismissable alert saving. Currently framework does NOT auto-load this AJAX ability to save disalerts.
pb_backupbuddy::add_ajax('importexport_settings');
// Popup thickbox for importing and exporting settings.
pb_backupbuddy::add_ajax('file_tree');
// Display file listing of zip.
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
//if ( pb_backupbuddy::$options['dashboard_stats'] == '1' ) {
if (!is_multisite() || is_multisite() && is_network_admin()) {
// Only show if standalon OR in main network admin.
pb_backupbuddy::add_dashboard_widget('stats', 'BackupBuddy', 'godmode');
}
//}
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter('plugin_row_meta', 10, 2);
/********** PAGES (admin) **********/
if (is_multisite() && pb_backupbuddy::$classes['core']->is_network_activated() && !defined('PB_DEMO_MODE')) {
// Multisite installation.
if (defined('PB_BACKUPBUDDY_MULTISITE_EXPERIMENT') && PB_BACKUPBUDDY_MULTISITE_EXPERIMENT == TRUE) {
示例7:
pb_backupbuddy::add_ajax('disalert');
// Dismissable alert saving. Currently framework does NOT auto-load this AJAX ability to save disalerts.
pb_backupbuddy::add_ajax('importexport_settings');
// Popup thickbox for importing and exporting settings.
pb_backupbuddy::add_ajax('file_tree');
// Display file listing of zip.
pb_backupbuddy::add_ajax('restore_file_view');
// File viewer (view content only) in the file restore page.
pb_backupbuddy::add_ajax('restore_file_restore');
// File restorer (actual unzip/restore) in the file restore page.
//pb_backupbuddy::add_ajax( 'quickstart_stash_test' ); // Getting Started Quick Start Stash auth testing.
pb_backupbuddy::add_ajax('quickstart_form');
// Getting Started Quick Start form saving.
pb_backupbuddy::add_ajax('backup_profile_settings');
// Settings page backup profile editing.
pb_backupbuddy::add_ajax('email_error_test');
// Test email error notification.
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
//if ( pb_backupbuddy::$options['dashboard_stats'] == '1' ) {
if (!is_multisite() || is_multisite() && is_network_admin()) {
// Only show if standalon OR in main network admin.
pb_backupbuddy::add_dashboard_widget('stats', 'BackupBuddy', 'godmode');
}
//}
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter('plugin_row_meta', 10, 2);
/********** PAGES (admin) **********/
if (is_multisite() && pb_backupbuddy::$classes['core']->is_network_activated() && !defined('PB_DEMO_MODE')) {
// Multisite installation.
if (defined('PB_BACKUPBUDDY_MULTISITE_EXPERIMENT') && PB_BACKUPBUDDY_MULTISITE_EXPERIMENT == TRUE) {
示例8: array
// Server info page icicle.
pb_backupbuddy::add_ajax('remote_test');
// Remote destination testing.
pb_backupbuddy::add_ajax('refresh_site_size');
// Server info page site size update.
pb_backupbuddy::add_ajax('refresh_site_size_excluded');
// Server info page site size (sans exclusions) update.
pb_backupbuddy::add_ajax('refresh_database_size');
// Server info page database size update.
pb_backupbuddy::add_ajax('refresh_database_size_excluded');
// Server info page site size (sans exclusions) update.
pb_backupbuddy::add_ajax('phpinfo');
// Server info page extended PHPinfo thickbox.
pb_backupbuddy::add_ajax('exclude_tree');
// Directory exclusions picker for settings page.
pb_backupbuddy::add_ajax('download_archive');
// Directory exclusions picker for settings page.
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
pb_backupbuddy::add_dashboard_widget('stats', 'BackupBuddy');
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter('plugin_row_meta', 10, 2);
/********** PAGES (admin) **********/
if (is_multisite() && pb_backupbuddy::$classes['core']->is_network_activated() && !defined('PB_DEMO_MODE')) {
// Multisite installation.
if (is_network_admin()) {
// Network Admin pages
pb_backupbuddy::add_page('', 'getting_started', array(pb_backupbuddy::settings('name'), 'Getting Started'));
pb_backupbuddy::add_page('getting_started', 'backup', __('Backup', 'it-l10n-backupbuddy'), 'manage_network');
pb_backupbuddy::add_page('getting_started', 'migrate_restore', __('Migrate, Restore', 'it-l10n-backupbuddy'), 'manage_network');
pb_backupbuddy::add_page('getting_started', 'multisite_import', __('Multisite Import', 'it-l10n-backupbuddy'), 'manage_network');
示例9:
// Display backup integrity status.
pb_backupbuddy::add_ajax('backup_step_status');
// Display backup step status in thickbox for recent backups section.
pb_backupbuddy::add_ajax('view_status_log');
// Display status log in thickbox for recent backups section.
pb_backupbuddy::add_ajax('importbuddy');
// ImportBuddy download link.
pb_backupbuddy::add_ajax('repairbuddy');
// RepairBuddy download link.
pb_backupbuddy::add_ajax('hash');
// Obtain MD5 hash of a backup file.
pb_backupbuddy::add_ajax('ajax_controller_callback_function');
// Tell WordPress about this AJAX callback.
pb_backupbuddy::add_ajax('disalert');
// Dismissable alert saving. Currently framework does NOT auto-load this AJAX ability to save disalerts.
pb_backupbuddy::add_ajax('importexport_settings');
// Popup thickbox for importing and exporting settings.
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
//if ( pb_backupbuddy::$options['dashboard_stats'] == '1' ) {
if (!is_multisite() || is_multisite() && is_network_admin()) {
// Only show if standalon OR in main network admin.
pb_backupbuddy::add_dashboard_widget('stats', 'BackupBuddy', 'godmode');
}
//}
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter('plugin_row_meta', 10, 2);
/********** PAGES (admin) **********/
if (is_multisite() && pb_backupbuddy::$classes['core']->is_network_activated() && !defined('PB_DEMO_MODE')) {
// Multisite installation.
if (is_network_admin()) {
示例10: array
// Remote destination testing.
pb_backupbuddy::add_ajax('refresh_site_size');
// Server info page site size update.
pb_backupbuddy::add_ajax('refresh_site_size_excluded');
// Server info page site size (sans exclusions) update.
pb_backupbuddy::add_ajax('refresh_database_size');
// Server info page database size update.
pb_backupbuddy::add_ajax('refresh_database_size_excluded');
// Server info page site size (sans exclusions) update.
pb_backupbuddy::add_ajax('phpinfo');
// Server info page extended PHPinfo thickbox.
pb_backupbuddy::add_ajax('exclude_tree');
// Directory exclusions picker for settings page.
pb_backupbuddy::add_ajax('download_archive');
// Directory exclusions picker for settings page.
pb_backupbuddy::add_ajax('set_backup_note');
// Used for setting a note on a backup archive in the backup listing.
/********** DASHBOARD (admin) **********/
// Display stats in Dashboard.
if (!is_multisite() || is_multisite() && is_network_admin()) {
// Only show if standalon OR in main network admin.
pb_backupbuddy::add_dashboard_widget('stats', 'BackupBuddy', 'godmode');
}
/********** FILTERS (admin) **********/
pb_backupbuddy::add_filter('plugin_row_meta', 10, 2);
/********** PAGES (admin) **********/
if (is_multisite() && pb_backupbuddy::$classes['core']->is_network_activated() && !defined('PB_DEMO_MODE')) {
// Multisite installation.
if (is_network_admin()) {
// Network Admin pages
pb_backupbuddy::add_page('', 'getting_started', array(pb_backupbuddy::settings('name'), 'Getting Started'));