Linux 软件免费装

Simple CSV Exporter

开发者 Toro_Unit
hamworks
更新时间 2024年11月29日 17:21
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.7
版权: GPLv2 or later
版权网址: 版权信息

标签

export CSV

下载

2.1.9 3.0.0 2.2.0 3.0.2 2.0.0 1.0.0 2.0.1 2.1.5 2.1.6 0.0.5 2.1.7 2.1.8

详情介绍:

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 );

更新日志:

3.0.0 2.2.0 2.1.7 2.1.0 2.0.1 2.0.0 1.1.0 1.0.0 0.0.1