內容簡介
WP.com Cross-Post 是一個免費的 WordPress 外掛程式,可每天自動將你的 WordPress.com 博客與自架的 WordPress 網站進行同步。
透過 API,它會從 WordPress.com 取得文章並自動發佈到自架的 WordPress 網站上。
自定義
此外掛程式可透過過濾器進行自定義。目前的可用過濾器包括:
wpcom_crosspost_author_email:傳遞用戶電子郵件地址作為跨發佈文章的作者;
wpcom_crosspost_post_data:在建立跨發佈文章之前過濾資料;
wpcom_crosspost_sync_frequency:更改檢查新文章的定期排程事件的頻率;
wpcom_crosspost_api_call_params:過濾傳送至 WordPress.com 的 API 資料以檢索文章;
wpcom_crosspost_sinc_from:更改從 WordPress.com 檢索文章的「從」日期。預設值為「昨天」。
Google 重複內容
此外掛程式與 Yoast SEO 相容,可預防重複內容。請確認已安裝且啟用 Yoast SEO 外掛程式,此外掛程式會自動過濾文章網址,設置指向其原始 WordPress.com 永久鏈接的網域交叉引用標記。
外掛標籤
開發者團隊
原文外掛簡介
WP.com Cross-Post is a free plugin that syncs your WordPress.com blog with your self-hosted WordPress site automatically, every day.
It creates posts on your self-hosted WordPress site by fetching them from WordPress.com through the API and publishes them automatically.
Customization
This plugin is customizable via filters. The available filters are:
wpcom_crosspost_author_email: Pass the email address of the user to use as author of the cross-posts;
wpcom_crosspost_post_data: Filter the data before to create the cross-post;
wpcom_crosspost_sync_frequency: Change the frequency of the scheduled event to check for new posts;
wpcom_crosspost_api_call_params: Filter the data sent to WordPress.com via API to retrieve posts;
wpcom_crosspost_sinc_from: Change the “from” date to retrieve posts from WordPress.com. Default “yesterday”.
Google Duplicated Content
This plugin is compatible with Yoast SEO to prevent duplicated content. Make sure to have Yoast SEO installed and active, the plugin will automatically filter the post URL and set the canonical cross-domain URL pointing to its original WordPress.com permalink.
