jblond/wordpress-export-media-urls

1.0.2 2023-12-05 14:52 UTC

This package is auto-updated.

Last update: 2024-11-05 17:02:06 UTC


README

install via composer

composer require jblond/wordpress-export-media-urls 

Wordpress export

Goto: Tools -> Export. Select: Media. Choose your start date and end date.

Example

<?php

use jblond\export\WordpressXmlMediaExporter;

require '../vendor/autoload.php';

$exporter = new WordpressXmlMediaExporter;
$exporter->setFile('WordPress-media-export.xml');
$export = $exporter->getData();
foreach ($export as $row){
    echo 'curl -LO ' . $row . "\n";
}

Requirements

  • PHP >= 7.4
  • PHP extension simpleXML