WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Toro_Unit (Hiroshi Urabe) v3.0.2

Simple CSV Exporter

Simple CSV Exporter.

Simple CSV Exporter

The facts

Rating
5★ from 1
Active installs
300+
Price
Free
Last updated
29 Nov 2024
Added
Dec 2020
Requires WP
5.8
Tested up to
WP 6.7.7
Requires PHP
8.0
Downloads
4,906

Our analysis

AI-assisted

Simple CSV Exporter is a WordPress plugin that allows you to export posts in CSV format. You can customize which data and columns are included in the export, making it suitable for users who need specific post information in a structured format.

The plugin supports customization through hooks and filters, enabling you to modify the exported data and its structure according to your needs. It is particularly useful for those who want to prepare data for import into other systems or for analysis.

Best for: This plugin is best for WordPress users needing to export posts in a customizable CSV format.

What it does well

  • Free to use from the WordPress.org directory
  • Allows customization of exported data and columns
  • Supports exporting specific post types
  • Can be integrated with Really Simple CSV Importer

Where it falls short

  • Limited information on additional features or user support
  • No user ratings beyond a single review

Verdict

Simple CSV Exporter provides basic functionality for exporting posts, with customization options for more tailored exports. It may suit users looking for straightforward CSV export capabilities.

From the developer

Toro_Unit (Hiroshi Urabe)'s own description of Simple CSV Exporter, lightly tidied.

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

Read the full description on the official page →

Tagged as