wpmdb_cancellation

wpmdb_cancellation

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wp-migrate-db.2.6.9

do_action('wpmdb_cancellation') is found 2 times:

  • /class/Common/Migration/MigrationManager.php line 485
                    $ajax_url          = $this->util->ajax_url();
    
                    $response          = $this->remote_post->post($ajax_url, $data, __FUNCTION__);
                    $filtered_response = HandleRemotePostError::handle('wpmdb_remote_cancellation_failed', $response);
                    do_action('wpmdb_cancellation');
    
                    return $this->http->end_ajax($filtered_response);
                case 'pull':
                    if ($state_data['stage'] == 'backup') {
                        if (!empty($state_data['dumpfile_created'])) {
                            $this->backup_export->delete_export_file($state_data['dump_filename'], true);
    
  • /class/Common/Migration/MigrationManager.php line 525
                default:
                    break;
            }
    
            do_action('wpmdb_cancellation');
    
            $this->http->end_ajax('success');
        }
    
        protected function handle_remote_backup($state_data)
        {
    

See this hook used in plugins: