Linux 软件免费装

Simple CSV Exporter

开发者 Toro_Unit
hamworks
更新时间 2022年7月26日 14:46
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.0
版权: GPLv2 or later
版权网址: 版权信息

标签

export CSV

下载

1.0.0 2.0.0 0.0.5 2.0.1

详情介绍:

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_created_data_builder_for_wp_posts_pre_get_posts', function ( WP_Query $query ) { $query->set( 'order', 'ASC' ); } ); Data filter for metadata. use HAMWORKS\WP\Simple_CSV_Exporter\Data_Builder; add_filter( 'simple_csv_exporter_created_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; } );

更新日志:

2.0.1 2.0.0 1.1.0 1.0.0 0.0.1