wpmdb_before_remote_post

wpmdb_before_remote_post

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

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

do_action('wpmdb_before_remote_post') is found 1 times:

  • /class/Common/Http/RemotePost.php line 143
            $args['headers']['Content-Type'] = 'multipart/form-data; boundary=' . $this->props->multipart_boundary;
            $args['headers']['Referer']      = $this->util->referer_from_url($url);
    
            $this->dynamic_props->attempting_to_connect_to = $url;
            do_action('wpmdb_before_remote_post');
    
            $response = wp_remote_post($url, $args);
    
            if (!is_wp_error($response)) {
                // Every response should be scrambled, but other processes may have been applied too so we use a filter.
                add_filter('wpmdb_after_response', array($this->scrambler, 'unscramble'));