{"id":133259,"date":"2020-12-11T02:29:32","date_gmt":"2020-12-11T02:29:32","guid":{"rendered":"https:\/\/ja.wordpress.org\/plugins\/simple-csv-exporter\/"},"modified":"2024-11-29T09:21:43","modified_gmt":"2024-11-29T09:21:43","slug":"simple-csv-exporter","status":"publish","type":"plugin","link":"https:\/\/nl.wordpress.org\/plugins\/simple-csv-exporter\/","author":6734486,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"3.0.2","stable_tag":"3.0.2","tested":"6.7.5","requires":"5.8","requires_php":"8.0","requires_plugins":null,"header_name":"simple-csv-exporter","header_author":"HAMWORKS","header_description":"CSV Exporter","assets_banners_color":"","last_updated":"2024-11-29 09:21:43","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.me\/torounit","header_plugin_uri":"https:\/\/github.com\/team-hamworks\/simple-csv-exporter","header_author_uri":"https:\/\/ham.works","rating":5,"author_block_rating":0,"active_installs":300,"downloads":4471,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":2,"sections":["description","changelog"],"tags":{"0.0.5":{"tag":"0.0.5","author":"hamworks","date":"2020-12-11 02:29:17"},"1.0.0":{"tag":"1.0.0","author":"hamworks","date":"2020-12-11 02:55:10"},"2.0.0":{"tag":"2.0.0","author":"hamworks","date":"2020-12-26 19:55:02"},"2.0.1":{"tag":"2.0.1","author":"hamworks","date":"2022-07-26 06:46:57"},"2.1.5":{"tag":"2.1.5","author":"hamworks","date":"2024-11-27 06:09:22"},"2.1.6":{"tag":"2.1.6","author":"hamworks","date":"2024-11-27 06:59:11"},"2.1.7":{"tag":"2.1.7","author":"hamworks","date":"2024-11-27 08:00:49"},"2.1.8":{"tag":"2.1.8","author":"hamworks","date":"2024-11-27 09:05:57"},"2.1.9":{"tag":"2.1.9","author":"hamworks","date":"2024-11-28 03:27:53"},"2.2.0":{"tag":"2.2.0","author":"hamworks","date":"2024-11-28 04:54:55"},"3.0.0":{"tag":"3.0.0","author":"hamworks","date":"2024-11-29 08:51:50"},"3.0.2":{"tag":"3.0.2","author":"hamworks","date":"2024-11-29 09:21:43"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.0.5","1.0.0","2.0.0","2.0.1","2.1.5","2.1.6","2.1.7","2.1.8","2.1.9","2.2.0","3.0.0","3.0.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[567,1859],"plugin_category":[59],"plugin_contributors":[190978,78190],"plugin_business_model":[],"class_list":["post-133259","plugin","type-plugin","status-publish","hentry","plugin_tags-csv","plugin_tags-export","plugin_category-utilities-and-tools","plugin_contributors-hamworks","plugin_contributors-toro_unit","plugin_committers-hamworks","plugin_committers-toro_unit"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/simple-csv-exporter.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Simple CSV Exporter. Exported CSV can be imported with <a href=\"https:\/\/ja.wordpress.org\/plugins\/really-simple-csv-importer\/\">Really Simple CSV Importer<\/a>.<\/p>\n\n<p>When you select a post type, the posts will be exported.<\/p>\n\n<p>Github Repo: <a href=\"https:\/\/github.com\/hamworks\/simple-csv-exporter\">https:\/\/github.com\/hamworks\/simple-csv-exporter<\/a><\/p>\n\n<h4>Customize the data to be exported<\/h4>\n\n<p>Customize for column.<\/p>\n\n<pre>use HAMWORKS\\WP\\Simple_CSV_Exporter\\Data_Builder;\nadd_action( 'simple_csv_exporter_created_data_builder', \n    function ( Data_Builder $data ) {\n        \/\/ Remove column.\n        $data-&gt;append_drop_column( 'page_template' );\n        \/\/ Add custom field column.\n        $data-&gt;append_meta_key( 'my_meta_key' );\n    }\n);<\/pre>\n\n<p>Customize posts for export.<\/p>\n\n<pre>add_action( 'simple_csv_exporter_data_builder_for_wp_posts_pre_get_posts', \n    function ( WP_Query $query ) {\n        $query-&gt;set( 'order', 'ASC' );\n    }\n);<\/pre>\n\n<p>Data filter for metadata.<\/p>\n\n<pre>add_filter( 'simple_csv_exporter_data_builder_for_wp_posts_get_post_meta_fields',\n    function ( array $fields ) {\n        foreach (\n            array(\n                'your_flag',\n            ) as $key\n        ) {\n            if ( isset( $fields[ $key ] ) ) {\n                $fields[ $key ] = ! empty( $fields[ $key ] ) ? 'TRUE' : 'FALSE';\n            }\n        }\n        return $fields;\n    }\n);<\/pre>\n\n<p>Data filter for post.<\/p>\n\n<pre>add_filter(\n    'simple_csv_exporter_data_builder_for_wp_posts_row_data',\n    function ( $row_data, $post ) {\n        $row_data['permalink'] = get_permalink( $post );\n        unset( $row_data['comment_status'] );\n        return $row_data;\n    },\n    10,\n    2\n);<\/pre>\n\n<!--section=changelog-->\n<h4>3.0.0<\/h4>\n\n<ul>\n<li>Add support UTF-8 with BOM.<\/li>\n<li>Refactor code.<\/li>\n<\/ul>\n\n<h4>2.2.0<\/h4>\n\n<ul>\n<li>Add <code>simple_csv_exporter_data_builder_for_wp_posts_get_the_terms_field<\/code> filter.<\/li>\n<\/ul>\n\n<h4>2.1.7<\/h4>\n\n<ul>\n<li>Fix taxonomy export.<\/li>\n<\/ul>\n\n<h4>2.1.0<\/h4>\n\n<ul>\n<li>Rename hooks.<\/li>\n<li>Add <code>simple_csv_exporter_data_builder_for_wp_posts_row_data<\/code> filter.<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>Tested on WP 6.0<\/li>\n<li>Drop support WP 5.7 and PHP 7.3<\/li>\n<\/ul>\n\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Use PHP-DI.<\/li>\n<li>Refactoring.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Refactoring release.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>first release.<\/li>\n<\/ul>\n\n<h4>0.0.1<\/h4>\n\n<ul>\n<li>internal release.<\/li>\n<\/ul>","raw_excerpt":"Simple CSV Exporter.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/133259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=133259"}],"author":[{"embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/toro_unit"}],"wp:attachment":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=133259"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=133259"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=133259"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=133259"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=133259"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=133259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}