[WordPress] 外掛分享: Simple CSV Exporter

前言介紹

  • 這款 WordPress 外掛「Simple CSV Exporter」是 2020-12-10 上架。
  • 目前有 300 個安裝啟用數。
  • 上一次更新是 2024-11-29,距離現在已有 161 天。
  • 外掛最低要求 WordPress 5.8 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 8.0 以上。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

hamworks | toro_unit |

外掛標籤

csv | export |

內容簡介

簡單的 CSV 匯出器。 CSV 可以使用Really Simple CSV Importer進行匯入。

選擇文章類型時,文章會被匯出。

Github存儲庫:https://github.com/hamworks/simple-csv-exporter

自訂要匯出的數據

自定義列。

use HAMWORKS\WP\Simple_CSV_Exporter\Data_Builder;
add_action('simple_csv_exporter_created_data_builder',
function(Data_Builder $data){
// 刪除列。
$data->append_drop_column('page_template');
// 添加自定義字段列。
$data->append_meta_key('my_meta_key');
}
);

自定義導出的文章。

add_action('simple_csv_exporter_created_data_builder_for_wp_posts_pre_get_posts',
function(WP_Query $query){
$query->set('order', 'ASC');
}
);

元數據的數據過濾器。

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

原文外掛簡介

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

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Simple CSV Exporter」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


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 | trunk |

延伸相關外掛(你可能也想知道)

  • TablePress – Tables in WordPress made easy 》TablePress 是最受歡迎和評分最高的 WordPress 表格外掛程式。它允許您輕鬆地在您的網站上創建和管理美麗的表格。您可以使用區塊編輯器在文章、頁面或其他網...。
  • Import any XML, CSV or Excel File to WordPress 》WP All Import - 簡單且強大的 XML / CSV 匯入外掛程式, "這是一款功能豐富、表現優秀的外掛程式,難以一一列舉所有功能。但我可以告訴你,我能在不到 30 分...。
  • Import and export users and customers 》在您的免費測試網站中試試看:點擊此處 => https://demo.tastewp.com/import-users-from-csv-with-meta, 一個乾淨易用的用戶和客戶導入/導出外掛,適用於 ...。
  • wpDataTables – WordPress Data Table, Dynamic Tables & Table Charts Plugin 》wpDataTables 是一款流行的 WordPress 插件,可用於快速從 Excel、CSV、XML、JSON、PHP 和其他數據源創建表格和表格圖表。使用我們的 WP 表格插件,以簡潔、...。
  • WP Import Export Lite 》o.com/goto/wpimportexport" target="_blank">WordPress Import Export 插件 是一款易用、快速且進階的匯入和匯出網站數據的工具。, WordPress Import Export...。
  • Really Simple CSV Importer 》替代 CSV 導入外掛程式。簡單而強大,最適合於技術狂熱者。, , 類別支援, 標籤支援, 自訂欄位支援, Smart Custom Fields 支援, Custom Field Suite 支援, Adv...。
  • Import Export Suite for CSV and XML Datafeed 》內容遷移變得更加容易了, 您的內容很重要——信任 WP Ultimate CSV Importer, 現在,您可以使用我們的全功能導入導出捆綁工具快速方便地從 XML 和 CSV 文件中導...。
  • Import Users from CSV 》這個外掛允許您從上傳的 CSV 檔案中匯入使用者,會新增使用者的基本資訊、元資料欄位和使用者角色。, 您還可以選擇通知新使用者並在使用者登錄時顯示密碼提示...。
  • WP CSV Exporter 》這個外掛程式可以按照每篇文章類型將文章匯出為 CSV 格式。, 此外,它也支援文章的自訂欄位和自訂分類法。, 您還可以設定要下載的文章數量或日期範圍。, 如何...。
  • Product Export for WooCommerce to CSV, Excel, XML, and the Google Merchant Center 》使用 WooCommerce 產品匯出外掛程式 WP All Export Add-On,可以匯出產品資訊為 CSV、Excel 或 XML 檔案。WP All Export 提供了選擇匯出的產品欄位,按需要重...。
  • Simple CSV/XLS Exporter 》本外掛可以讓您透過簡單的連結/按鈕,從後端或前端匯出文章為 CSV 或 XLS 檔案。, 請確保您使用 PHP 7.3 或更新版本,如果您看到任何錯誤,舊版本將不再受支...。
  • Get Use APIs – JSON Content Importer 》在你的 WordPress 網站上展示 JSON-Feed/API 的即時資料!, 從網址上抓取 JSON 資料並在 WordPress 頁面上轉換為 HTML。, JSON Content Importer-API-和 Web...。
  • RS CSV Importer Media Add-On 》真正簡單的 CSV 匯入程式 附加元件。, CSV 中包含媒體(例如圖片、文件等)的 URL,下載媒體並將 URL 轉換為附件 ID。。
  • Import WP – Export and Import CSV and XML files to WordPress 》我們的 WordPress 優化匯入工具可輕鬆匯入及匯出 CSV 和 XML 檔案至 WordPress 文章、頁面、分類、標籤、自訂文章類型及自訂分類法。我們簡化了匯入附件、圖...。
  • User Import with meta 》通過 CSV 試算表導入帶有元數據詳細信息、自定義字段、WooCommerce 運輸詳細信息等用戶。, 重要提示: 此外掛是附加功能。因此,必須先安裝WP Ultimate CSV Im...。

文章
Filter
Apply Filters
Mastodon