Inpsyde\MultilingualPress\SiteDuplication\WPDBAttachmentCopier::update_attachment_urls PHP Метод

update_attachment_urls() приватный Метод

Updates attachment URLs according to the given arguments
private update_attachment_urls ( string $source_url, string $destination_url ) : void
$source_url string Source site uploads url.
$destination_url string Destination site uploads url.
Результат void
    private function update_attachment_urls($source_url, $destination_url)
    {
        $tables = [$this->db->comments => ['comment_content'], $this->db->posts => ['guid', 'post_content', 'post_content_filtered', 'post_excerpt'], $this->db->term_taxonomy => ['description']];
        array_walk($tables, function (array $columns, $table) use(&$upated, $source_url, $destination_url) {
            $this->table_string_replacer->replace_string($table, $columns, $source_url, $destination_url);
        });
    }