function __construct($plugin_file_path) { parent::__construct($plugin_file_path); $this->plugin_slug = 'wp-migrate-db-pro-media-files'; $this->plugin_version = $GLOBALS['wpmdb_meta']['wp-migrate-db-pro-media-files']['version']; if (!$this->meets_version_requirements('1.4.4')) { return; } add_action('wpmdb_after_advanced_options', array($this, 'migration_form_controls')); add_action('wpmdb_load_assets', array($this, 'load_assets')); add_action('wpmdb_js_variables', array($this, 'js_variables')); add_action('wpmdb_diagnostic_info', array($this, 'diagnostic_info')); add_filter('wpmdb_accepted_profile_fields', array($this, 'accepted_profile_fields')); add_filter('wpmdb_establish_remote_connection_data', array($this, 'establish_remote_connection_data')); add_filter('wpmdb_nonces', array($this, 'add_nonces')); // compatibility with CLI migraitons add_filter('wpmdb_cli_finalize_migration', array($this, 'cli_migration'), 10, 4); // internal AJAX handlers add_action('wp_ajax_wpmdbmf_determine_media_to_migrate', array($this, 'ajax_determine_media_to_migrate')); add_action('wp_ajax_wpmdbmf_migrate_media', array($this, 'ajax_migrate_media')); // external AJAX handlers add_action('wp_ajax_nopriv_wpmdbmf_get_remote_media_listing', array($this, 'respond_to_get_remote_media_listing')); add_action('wp_ajax_nopriv_wpmdbmf_push_request', array($this, 'respond_to_push_request')); add_action('wp_ajax_nopriv_wpmdbmf_remove_local_attachments', array($this, 'respond_to_remove_local_attachments')); }
function __construct($plugin_file_path) { parent::__construct($plugin_file_path); $this->plugin_slug = 'wp-migrate-db-pro-cli'; $this->plugin_version = $GLOBALS['wpmdb_meta']['wp-migrate-db-pro-cli']['version']; if (!$this->meets_version_requirements('1.4.4')) { return; } }
public function __construct($plugin_file_path) { parent::__construct($plugin_file_path); $this->media_diff_batch_time = apply_filters('wpmdb_media_diff_batch_time', 10); $this->media_diff_batch_limit = apply_filters('wpmdb_media_diff_batch_limit', 300); $this->media_files_batch_time_limit = apply_filters('wpmdb_media_files_batch_time_limit', 15); $this->accepted_fields = array('media_files', 'remove_local_media', 'media_migration_option', 'mf_select_subsites', 'mf_selected_subsites'); add_filter('wpmdb_accepted_profile_fields', array($this, 'accepted_profile_fields')); add_filter('wpmdbmf_include_subsite', array($this, 'include_subsite'), 10, 2); }
function __construct($plugin_file_path) { parent::__construct($plugin_file_path); $this->plugin_slug = 'wp-migrate-db-pro-cli'; $this->plugin_version = $GLOBALS['wpmdb_meta']['wp-migrate-db-pro-cli']['version']; $this->php_version_required = $GLOBALS['wpmdb_meta']['wp-migrate-db-pro-cli']['required-php-version']; if (!version_compare(PHP_VERSION, $this->php_version_required, '>=')) { return; } if (!$this->meets_version_requirements('1.5.2')) { return; } }
function __construct($plugin_file_path) { parent::__construct($plugin_file_path); $this->plugin_slug = 'wp-migrate-db-pro-media-files'; $this->plugin_version = $GLOBALS['wpmdb_meta']['wp-migrate-db-pro-media-files']['version']; if (!$this->meets_version_requirements('1.6.1')) { return; } add_action('wpmdb_after_advanced_options', array($this, 'migration_form_controls')); add_action('wpmdb_load_assets', array($this, 'load_assets')); add_action('wpmdb_diagnostic_info', array($this, 'diagnostic_info')); add_action('wpmdbmf_after_migration_options', array($this, 'after_migration_options_template')); add_filter('wpmdb_establish_remote_connection_data', array($this, 'establish_remote_connection_data')); add_filter('wpmdb_nonces', array($this, 'add_nonces')); add_filter('wpmdb_data', array($this, 'js_variables')); $this->media_files_local = new WPMDBPro_Media_Files_Local($plugin_file_path); $this->media_files_remote = new WPMDBPro_Media_Files_Remote($plugin_file_path); }
/** * @param string $plugin_file_path */ function __construct($plugin_file_path) { parent::__construct($plugin_file_path); $this->plugin_slug = 'wp-migrate-db-pro-multisite-tools'; $this->plugin_version = $GLOBALS['wpmdb_meta']['wp-migrate-db-pro-multisite-tools']['version']; if (!$this->meets_version_requirements('1.7')) { return; } $this->accepted_fields = array('multisite_subsite_export', 'select_subsite', 'mst_select_subsite', 'mst_selected_subsite', 'new_prefix', 'keep_active_plugins'); add_action('wpmdb_before_migration_options', array($this, 'migration_form_controls')); add_action('wpmdb_load_assets', array($this, 'load_assets')); add_action('wpmdb_diagnostic_info', array($this, 'diagnostic_info')); add_filter('wpmdb_accepted_profile_fields', array($this, 'accepted_profile_fields')); add_filter('wpmdb_establish_remote_connection_data', array($this, 'establish_remote_connection_data')); add_filter('wpmdb_data', array($this, 'js_variables')); add_filter('wpmdb_exclude_table', array($this, 'filter_table_for_subsite'), 10, 2); add_filter('wpmdb_tables', array($this, 'filter_tables_for_subsite'), 10, 2); add_filter('wpmdb_table_sizes', array($this, 'filter_table_sizes_for_subsite'), 10, 2); add_filter('wpmdb_target_table_name', array($this, 'filter_target_table_name'), 10, 4); add_filter('wpmdb_table_row', array($this, 'filter_table_row'), 10, 4); add_filter('wpmdb_find_and_replace', array($this, 'filter_find_and_replace'), 10, 3); add_filter('wpmdb_finalize_target_table_name', array($this, 'filter_finalize_target_table_name'), 10, 3); add_filter('wpmdb_preserved_options', array($this, 'filter_preserved_options'), 10, 2); add_filter('wpmdb_preserved_options_data', array($this, 'filter_preserved_options_data'), 10, 2); add_filter('wpmdb_get_alter_queries', array($this, 'filter_get_alter_queries')); add_filter('wpmdb_replace_site_urls', array($this, 'filter_replace_site_urls')); global $wpmdbpro; $this->wpmdbpro = $wpmdbpro; if (class_exists('WPMDBPro_Media_Files')) { add_filter('wpmdbmf_include_subsite', array($this, 'include_subsite'), 10, 3); add_filter('wpmdbmf_destination_file_path', array($this, 'filter_mf_destination_file_path'), 10, 3); add_filter('wpmdbmf_file_not_on_local', array($this, 'filter_mf_file_not_on_local'), 10, 3); add_filter('wpmdbmf_get_remote_attachment_batch_response', array($this, 'filter_mf_get_remote_attachment_batch_response'), 10, 3); add_filter('wpmdbmf_exclude_local_media_file_from_removal', array($this, 'filter_mf_exclude_local_media_file_from_removal'), 10, 4); add_filter('wpmdbmf_file_to_download', array($this, 'filter_mf_file_to_download'), 10, 3); } }
function __construct($plugin_file_path) { parent::__construct($plugin_file_path); $this->plugin_slug = 'wp-migrate-db-pro-media-files'; $this->plugin_version = $GLOBALS['wpmdb_meta']['wp-migrate-db-pro-media-files']['version']; if (!$this->meets_version_requirements('1.4.6')) { return; } $this->media_diff_batch_time = apply_filters('wpmdb_media_diff_batch_time', 10); //seconds $this->media_diff_batch_limit = apply_filters('wpmdb_media_diff_batch_limit', 500); //number of attachments $this->media_files_batch_time_limit = apply_filters('wpmdb_media_files_batch_time_limit', 15); //seconds add_action('wpmdb_after_advanced_options', array($this, 'migration_form_controls')); add_action('wpmdb_load_assets', array($this, 'load_assets')); add_action('wpmdb_js_variables', array($this, 'js_variables')); add_action('wpmdb_diagnostic_info', array($this, 'diagnostic_info')); add_action('wpmdb_template_progress_after_bar', array($this, 'progress_template')); add_filter('wpmdb_accepted_profile_fields', array($this, 'accepted_profile_fields')); add_filter('wpmdb_establish_remote_connection_data', array($this, 'establish_remote_connection_data')); add_filter('wpmdb_nonces', array($this, 'add_nonces')); // internal AJAX handlers add_action('wp_ajax_wpmdbmf_remove_files_recursive', array($this, 'ajax_remove_files_recursive')); add_action('wp_ajax_wpmdbmf_prepare_determine_media', array($this, 'ajax_prepare_determine_media')); add_action('wp_ajax_wpmdbmf_determine_media_to_migrate_recursive', array($this, 'ajax_determine_media_to_migrate_recursive')); add_action('wp_ajax_wpmdbmf_migrate_media', array($this, 'ajax_migrate_media')); // external AJAX handlers add_action('wp_ajax_nopriv_wpmdbmf_get_remote_media_info', array($this, 'respond_to_get_remote_media_info')); add_action('wp_ajax_nopriv_wpmdbmf_get_remote_attachment_batch', array($this, 'respond_to_get_remote_attachment_batch')); add_action('wp_ajax_nopriv_wpmdbmf_compare_remote_attachments', array($this, 'respond_to_compare_remote_attachments')); add_action('wp_ajax_nopriv_wpmdbmf_push_request', array($this, 'respond_to_push_request')); add_action('wp_ajax_nopriv_wpmdbmf_get_local_media_files_batch', array($this, 'respond_to_get_local_media_files_batch')); add_action('wp_ajax_nopriv_wpmdbmf_compare_local_media_files', array($this, 'respond_to_compare_local_media_files')); add_action('wp_ajax_nopriv_wpmdbmf_remove_local_media_files', array($this, 'respond_to_remove_local_media_files')); }