wpmdb_before_response

wpmdb_before_response

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

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

apply_filters('wpmdb_before_response') is found 2 times:

  • /class/Common/Http/Http.php line 94
                    return wp_send_json_error(sprintf(__('An error occurred - JSON response: %s', 'wp-migrate-db'), $json));
                }
            }
    
            $return = apply_filters('wpmdb_before_response', $return);
    
            if ($this->dynamic_props->doing_cli_migration) {
                // This function should signal the end of the PHP process, but for CLI it carries on so we need to reset our own usage
                // of the wpmdb_before_response filter before another respond_to_* function adds it again.
                remove_filter('wpmdb_before_response', array($this->scrambler, 'scramble'));
    
    
  • /class/Common/Sql/Table.php line 1083
                        return false;
                    }
                }
            } elseif ($state_data['intent'] == 'pull') {
                echo apply_filters('wpmdb_before_response', $query_line);
            } elseif ('find_replace' === $state_data['stage']) {
                return $this->process_chunk($query_line);
            }
        }
    
        function process_chunk($chunk)