{"id":33642,"date":"2014-12-29T19:13:59","date_gmt":"2014-12-29T19:13:59","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/advanced-csv-importer\/"},"modified":"2015-04-24T12:17:36","modified_gmt":"2015-04-24T12:17:36","slug":"advanced-csv-importer","status":"publish","type":"plugin","link":"https:\/\/bal.wordpress.org\/plugins\/advanced-csv-importer\/","author":175046,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1.6","stable_tag":"0.1.6","tested":"4.2.39","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"Advanced CSV Importer","header_author":"Takayuki Miyauchi","header_description":"","assets_banners_color":"1b95bb","last_updated":"2015-04-24 12:17:36","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/miya0001\/advanced-csv-importer","header_author_uri":"https:\/\/github.com\/miya0001\/","rating":4,"author_block_rating":0,"active_installs":30,"downloads":6794,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":"1","5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1056456","resolution":"128x128","location":"assets"}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1056456","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.0","0.1.1","0.1.2","0.1.3","0.1.4","0.1.6"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1056456","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1056456","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1056456","resolution":"3","location":"assets"}},"screenshots":{"1":"Tools Import Screen","2":"The result of an importing","3":"History of importing"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[567,87,4574],"plugin_category":[59],"plugin_contributors":[78030,78380],"plugin_business_model":[],"class_list":["post-33642","plugin","type-plugin","status-publish","hentry","plugin_tags-csv","plugin_tags-import","plugin_tags-wp-cli","plugin_category-utilities-and-tools","plugin_contributors-megumithemes","plugin_contributors-miyauchi","plugin_committers-miyauchi"],"banners":{"banner":"https:\/\/ps.w.org\/advanced-csv-importer\/assets\/banner-772x250.png?rev=1056456","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/advanced-csv-importer\/assets\/icon-128x128.png?rev=1056456","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/advanced-csv-importer\/assets\/screenshot-1.png?rev=1056456","caption":"Tools Import Screen"},{"src":"https:\/\/ps.w.org\/advanced-csv-importer\/assets\/screenshot-2.png?rev=1056456","caption":"The result of an importing"},{"src":"https:\/\/ps.w.org\/advanced-csv-importer\/assets\/screenshot-3.png?rev=1056456","caption":"History of importing"}],"raw_content":"<!--section=description-->\n<p>The Advanced CSV Importer will import the following content from a CSV file.<\/p>\n\n<p>Advanced CSV Importer is fully unit-tested. The plugin is stable and ready to be used in large projects like enterprise applications.<\/p>\n\n<ul>\n<li>Posts, pages and other custom post types<\/li>\n<li>Custom fields and post meta<\/li>\n<li>Categories, tags<\/li>\n<\/ul>\n\n<p>https:\/\/github.com\/miya0001\/advanced-csv-importer<\/p>\n\n<p>This plugin requires PHP 5.3 or later.<\/p>\n\n<h4>Default CSV field names<\/h4>\n\n<ul>\n<li>ID<\/li>\n<li>post_content<\/li>\n<li>post_name<\/li>\n<li>post_title<\/li>\n<li>post_status<\/li>\n<li>post_type<\/li>\n<li>post_author<\/li>\n<li>ping_status<\/li>\n<li>post_parent<\/li>\n<li>menu_order<\/li>\n<li>to_ping<\/li>\n<li>pinged<\/li>\n<li>post_password<\/li>\n<li>guid<\/li>\n<li>post_content_filtered<\/li>\n<li>post_excerpt<\/li>\n<li>post_date<\/li>\n<li>post_date_gmt<\/li>\n<li>comment_status<\/li>\n<li>post_category<\/li>\n<li>tags_input<\/li>\n<li>page_template<\/li>\n<\/ul>\n\n<p>You can change field name via <code>acsv_post_object_keys<\/code> hook like following.<\/p>\n\n<pre><code>add_filter( 'acsv_post_object_keys', function( $post_object_keys ){\n    $post_object_keys['title'] = 'post_title';\n    $post_object_keys['content'] = 'post_content';\n    return $post_object_keys;\n} );\n<\/code><\/pre>\n\n<p>Other columns will be saved to the custom field.<\/p>\n\n<p>There is a sample of the CSV.<\/p>\n\n<p>https:\/\/gist.github.com\/miya0001\/06f1a8e2bf1789c7ddee<\/p>\n\n<h4>Action Hooks<\/h4>\n\n<ul>\n<li>acsv_after_insert_post<\/li>\n<\/ul>\n\n<h4>Filter Hooks<\/h4>\n\n<ul>\n<li>acsv_post_object_keys<\/li>\n<li>acsv_post_defaults<\/li>\n<li>acsv_import_upload_size_limit<\/li>\n<li>acsv_pre_get_post_objects<\/li>\n<li>acsv_after_get_post_objects<\/li>\n<li>acsv_csv_format<\/li>\n<li>acsv_csv_to_hash_array<\/li>\n<li>acsv_get_user_by_field<\/li>\n<\/ul>\n\n<h4>WP-CLI<\/h4>\n\n<p>Importing:<\/p>\n\n<pre><code>$ wp csv import tests\/_data\/wp\/sample.csv\n+------+-----------------------+------+---------+------------+---------------------+\n| ID   | Title                 | Type | Status  | Author     | Date                |\n+------+-----------------------+------+---------+------------+---------------------+\n| 1720 | CSV Import Test       | post | publish | admin      | 2013-09-13 00:00:00 |\n| 1721 | define author test    | post | publish | admin      | 2014-12-27 18:44:46 |\n| 1722 | define author id test | post | publish | themedemos | 2014-12-27 18:44:46 |\n| 1    | Hello world! Updated! | post | publish | admin      | 2014-12-27 18:44:46 |\n+------+-----------------------+------+---------+------------+---------------------+\n<\/code><\/pre>\n\n<p>History:<\/p>\n\n<pre><code>$ wp csv log\n+----------+-----------------------------+---------------------+---------+---------+\n| ID       | Title                       | Date                | Success | Failure |\n+----------+-----------------------------+---------------------+---------+---------+\n| e0a66344 | Imported from WP-CLI.       | 2014-12-27 18:44:46 |       4 |       0 |\n| 43c47af6 | Imported from admin screen. | 2014-12-27 16:53:17 |       4 |       0 |\n| df0f140b | Imported from WP-CLI.       | 2014-12-27 16:21:42 |       4 |       0 |\n+----------+-----------------------------+---------------------+---------+---------+\n<\/code><\/pre>\n\n<p>Details of the history:<\/p>\n\n<pre><code>$ wp csv log e0a66344\n+------+-----------------------+------+---------+------------+---------------------+\n| ID   | Title                 | Type | Status  | Author     | Date                |\n+------+-----------------------+------+---------+------------+---------------------+\n| 1720 | CSV Import Test       | post | publish | admin      | 2013-09-13 00:00:00 |\n| 1721 | define author test    | post | publish | admin      | 2014-12-27 18:44:46 |\n| 1722 | define author id test | post | publish | themedemos | 2014-12-27 18:44:46 |\n| 1    | Hello world! Updated! | post | publish | admin      | 2014-12-27 18:44:46 |\n+------+-----------------------+------+---------+------------+---------------------+\n<\/code><\/pre>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<p>e.g.<\/p>\n\n<ol>\n<li>Upload <code>plugin-name.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Place <code>&lt;?php do_action('plugin_name_hook'); ?&gt;<\/code> in your templates<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Import posts, pages, custom fields, categories, tags and more from a CSV file.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/33642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=33642"}],"author":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/miyauchi"}],"wp:attachment":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=33642"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=33642"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=33642"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=33642"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=33642"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=33642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}