বৰ্ণনা
Simple CSV Exporter. Exported CSV can be imported with Really Simple CSV Importer.
When you select a post type, the posts will be exported.
Github Repo: https://github.com/hamworks/simple-csv-exporter
Customize the data to be exported
Customize for column.
use HAMWORKS\WP\Simple_CSV_Exporter\Data_Builder;
add_action( 'simple_csv_exporter_created_data_builder',
function ( Data_Builder $data ) {
// Remove column.
$data->append_drop_column( 'page_template' );
// Add custom field column.
$data->append_meta_key( 'my_meta_key' );
}
);
Customize posts for export.
add_action( 'simple_csv_exporter_data_builder_for_wp_posts_pre_get_posts',
function ( WP_Query $query ) {
$query->set( 'order', 'ASC' );
}
);
Data filter for metadata.
add_filter( 'simple_csv_exporter_data_builder_for_wp_posts_get_post_meta_fields',
function ( array $fields ) {
foreach (
array(
'your_flag',
) as $key
) {
if ( isset( $fields[ $key ] ) ) {
$fields[ $key ] = ! empty( $fields[ $key ] ) ? 'TRUE' : 'FALSE';
}
}
return $fields;
}
);
Data filter for post.
add_filter(
'simple_csv_exporter_data_builder_for_wp_posts_row_data',
function ( $row_data, $post ) {
$row_data['permalink'] = get_permalink( $post );
unset( $row_data['comment_status'] );
return $row_data;
},
10,
2
);পৰ্য্যালোচনা
এপ্ৰিল 21, 2025
Simplicity is the key to a powerful tool. This is the sister plugin of Really Simple CSV Importer, and both do a remarkable job of manipulating post data in and out of the DB.
The one thing missing is the ability to export other types of data, users, taxonomies, attachment meta-data…it would be a real complete swiss-army knife with the ability to also export these other data types. This way you can batch fix missing pieces of meta-data in your DB by simply sorting through it in a google sheet
অৱদানকাৰী আৰু বিকাশকাৰীসকল
“Simple CSV Exporter” হৈছে মুক্ত উৎসৰ ছফ্টৱেৰ। এইসকল লোকে এই প্লাগিনত অৱদান আগবঢ়াইছে।
অৱদানকাৰীসকলআপোনাৰ ভাষাত “Simple CSV Exporter” অনুবাদ কৰক।
বিকাশৰ প্ৰতি আগ্ৰহী?
ক’ড ব্ৰাউজ কৰক, SVN ৰিপজিটৰী চাওক নাইবা RSS-দ্বাৰা বিকাশৰ পঞ্জী ছাবস্ক্ৰাইব কৰক।
সলনি-পঞ্জী
3.0.0
- Add support UTF-8 with BOM.
- Refactor code.
2.2.0
- Add
simple_csv_exporter_data_builder_for_wp_posts_get_the_terms_fieldfilter.
2.1.7
- Fix taxonomy export.
2.1.0
- Rename hooks.
- Add
simple_csv_exporter_data_builder_for_wp_posts_row_datafilter.
2.0.1
- Tested on WP 6.0
- Drop support WP 5.7 and PHP 7.3
2.0.0
- Use PHP-DI.
- Refactoring.
1.1.0
- Refactoring release.
1.0.0
- first release.
0.0.1
- internal release.