/** * Stub for ajax_finalize_migration() * hooks on: wpmdb_cli_finalize_migration_response * * @param string $response * * @return string */ function finalize_ajax($response) { // don't send redundant POST variables $args = $this->filter_post_elements($this->post_data, array('action', 'migration_state_id', 'prefix', 'tables')); $_POST = $args; $response = $this->wpmdbpro->ajax_finalize_migration(); return trim($response); }
/** * Stub for ajax_flush() * * @param array|bool $args * * @return bool|null */ function flush($args = false) { $_POST = $args; $response = $this->wpmdbpro->ajax_flush(); return $response; }