前言介紹
- 這款 WordPress 外掛「CSV Import and Exporter」是 2023-05-31 上架。
- 目前有 600 個安裝啟用數。
- 上一次更新是 2023-06-01,距離現在已有 702 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
- 有 2 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
kanakogi |
外掛標籤
csv | export | import | extract | custom post |
內容簡介
WordPress外掛可以將帖子以CSV格式導出,並與自訂欄位和自訂分類相容。此外,還可以設定要下載的帖子數量或日期範圍。此外,還提供了一些篩選器,使您可以自定義導出帖子的數據。以下是各個篩選器的詳細內容。
- wp_csv_exporter_post_name
- wp_csv_exporter_post_title
- wp_csv_exporter_post_content
- wp_csv_exporter_post_excerpt
- wp_csv_exporter_post_status
- wp_csv_exporter_post_author
- wp_csv_exporter_post_date
- wp_csv_exporter_post_modified
- wp_csv_exporter_thumbnail_url
- wp_csv_exporter_post_tags
- wp_csv_exporter_post_category
- wp_csv_exporter_tax_{taxonomy}
- wp_csv_exporter_{custom_field_key}
問題:
1. 使用WordPress外掛可將帖子以什麼格式導出?
2. 該外掛是否與自訂欄位和自訂分類相容?
3. 我們是否可設定要下載的帖子數量或日期範圍?
4. 此外還提供了什麼功能?
5. 該外掛具備哪些篩選器?
6. 如何設置wp_csv_exporter_post_name篩選器?
7. 如何變更wp_csv_exporter_post_title值?
8. 如何設置wp_csv_exporter_post_tags篩選器?
9. 如何變更自訂欄位值?
10. 篩選器wp_csv_exporter_category是做什麼用的?
原文外掛簡介
You can export posts in CSV format for each post type.
It is compatible with posts’ custom fields and custom taxonomies.
It is also possible to set the number or date range of posts to download.
How to customize export post data
This plugin has below filters.
wp_csv_exporter_post_name
wp_csv_exporter_post_title
wp_csv_exporter_post_content
wp_csv_exporter_post_excerpt
wp_csv_exporter_post_status
wp_csv_exporter_post_author
wp_csv_exporter_post_date
wp_csv_exporter_post_modified
wp_csv_exporter_thumbnail_url
wp_csv_exporter_post_tags
wp_csv_exporter_post_category
wp_csv_exporter_tax_{taxonomy}
wp_csv_exporter_{custom_field_key}
wp_csv_exporter_post_name
Parameters:
$post_name – (required) post slug
$post_id – (int) post id
Example:
add_filter( 'wp_csv_exporter_post_name', 'wp_csv_exporter_post_name_filter', 10, 3 );
function wp_csv_exporter_post_name_filter( $post_name, $post_id ) {
return $post_name;
}
wp_csv_exporter_post_title
Parameters:
$post_title – (required) post title
$post_id – (int) post id
Example:
add_filter( 'wp_csv_exporter_post_title', 'wp_csv_exporter_post_title_filter', 10, 3 );
function wp_csv_exporter_post_title_filter( $post_title, $post_id ) {
$post_title = $post_id . ':' . $post_title;
return $post_title;
}
wp_csv_exporter_post_content
Parameters:
$post_content – (required) post content
$post_id – (int) post id
wp_csv_exporter_post_excerpt
Parameters:
$post_excerpt – (required) post excerpt
$post_id – (int) post id
wp_csv_exporter_post_status
Parameters:
$post_status – (required) post status
$post_id – (int) post id
wp_csv_exporter_post_author
Parameters:
$post_author – (required) post author
$post_id – (int) post id
wp_csv_exporter_post_date
Parameters:
$post_date – (required) post date
$post_id – (int) post id
wp_csv_exporter_post_modified
Parameters:
$post_modified – (required) post modified date
$post_id – (int) post id
wp_csv_exporter_post_thumbnail_url
Parameters:
$post_thumbnail_url – (required) post thumbnail_url
$post_id – (int) post id
wp_csv_exporter_post_tags
Parameters:
$post_tags – (array)(required) post tags
$post_id – (int) post id
Example:
add_filter( 'wp_csv_exporter_post_tags', 'wp_csv_exporter_post_tags_filter', 10, 3 );
function wp_csv_exporter_post_tags_filter( $post_tags, $post_id ) {
$_post_tags = array();
foreach ( $post_tags as $key => $tag ) {
$_post_tags[] = 'Tag:'.$tag;
}
return $_post_tags;
}
wp_csv_exporter_category
Parameters:
$category – (array)(required) post category
$post_id – (int) post id
Example:
add_filter( 'wp_csv_exporter_category', 'wp_csv_exporter_category_filter', 10, 3 );
function wp_csv_exporter_post_category_filter( $category, $post_id ) {
$_category = array();
foreach ( $category as $key => $value ) {
$_category[] = 'Category:'.$value;
}
return $_category;
}
wp_csv_exporter_tax_{taxonomy}
Parameters:
$term_values – (array)(required) post taxonomy
$post_id – (int) post id
Example: taxonomy = “dogs”
add_filter( 'wp_csv_exporter_tax_dogs', 'wp_csv_exporter_tax_dogs_filter', 10, 3 );
function wp_csv_exporter_tax_dogs_filter( $term_values, $post_id ) {
$_term_values = array();
foreach ( $term_values as $key => $term_value ) {
$_term_values[] = 'Dog:'.$term_value;
}
return $_term_values;
}
wp_csv_exporter_{custom_field_key}
Parameters:
$field – (required) post custom field
$post_id – (int) post id
Example: custom field key = “price”
add_filter( 'wp_csv_exporter_price', 'wp_csv_exporter_price_filter', 10, 3 );
function wp_csv_exporter_price_filter( $field, $post_id ) {
return 'Price:'.$field;
}
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「CSV Import and Exporter」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
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 提供了選擇匯出的產品欄位,按需要重...。
Get Use APIs – JSON Content Importer 》在你的 WordPress 網站上展示 JSON-Feed/API 的即時資料!, 從網址上抓取 JSON 資料並在 WordPress 頁面上轉換為 HTML。, JSON Content Importer-API-和 Web...。
Simple CSV/XLS Exporter 》本外掛可以讓您透過簡單的連結/按鈕,從後端或前端匯出文章為 CSV 或 XLS 檔案。, 請確保您使用 PHP 7.3 或更新版本,如果您看到任何錯誤,舊版本將不再受支...。
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...。