Dette innstikket er ikkje testa med dei tre siste utgåvene av WordPress. Det kan henda det ikkje blir vedlikehalde lenger, og kan ha problem med nyare versjonar av WordPress.

RS CSV Importer Media Add-On

Skildring

Really Simple CSV Importer Add-on.

Media’s URL (Images, Documents… etc) in CSV, Download Media and Convert url to attachment ID.

Installasjon

  1. Install and Activate Really Simple CSV Importer.
  2. Upload the entire /rs-csv-importer-media-addon directory to the /wp-content/plugins/ directory.
  3. RS CSV Importer Media Add-On through the «Plugins» menu in WordPress.

Vanlege spm.

Is it possible to change the file type that allows the upload?

Use really_simple_csv_importer_media_ext2type for change file extension to allowed.

add_filter('really_simple_csv_importer_media_ext2type', 'really_simple_csv_importer_media_ext2type');

function really_simple_csv_importer_media_ext2type( $types ) {
    return array(
        'image'       => array( 'jpg', 'jpeg', 'jpe', 'gif', 'png' ),
        'audio'       => array( 'mp3', 'ogg', 'wav', 'wma' ),
        'video'       => array( 'mov', 'mp4', 'mpeg', 'mpg', 'ogm', 'ogv', 'wmv' ),
        'document'    => array( 'doc', 'docx', 'odt', 'pages', 'pdf', 'psd' ),
        'spreadsheet' => array( 'ods', 'xls', 'xlsx' ),
        'interactive' => array( 'swf', 'key', 'ppt', 'pptx', 'odp' ),
        'text'        => array( 'asc', 'csv', 'tsv', 'txt' ),
        'archive'     => array( 'dmg', 'gz', 'rar', 'tar', 'tgz', 'zip'),
        'code'        => array( 'css', 'htm', 'html', 'php', 'js' ),
    );
}

Omtalar

There are no reviews for this plugin.

Bidragsytarar og utviklarar

“RS CSV Importer Media Add-On” is open source software. The following people have contributed to this plugin.

Contributors

Endringslogg

1.1.0

  • Support Local File Path.
  • Add Unit Test.

1.0.0

  • First Release.