[WordPress] 外掛分享: Remove Post Type Slug

首頁外掛目錄 › Remove Post Type Slug
50+
安裝啟用
尚無評分
500 天前
最後更新
問題解決
WordPress 3.0.1+ v1.0.2 上架:2021-10-14

內容簡介

此外掛可讓您獲得乾淨的 SEO 網址優勢。只需點擊幾下,即可刪除自訂文章類型的 slug,並獲得 SEO 友好的網址。

此外掛還可以透過進入外掛設定來移除自訂文章類型的 slug。

您可以進行管理員登錄,並檢查管理員選單 > 移除自訂文章類型 Slug 設定來執行此操作。

一旦您點擊它,您就能夠看到所有現有的自訂文章類型 slug,您只需選擇它,然後保存設定即可。

針對開發人員,我還提供了過濾器,可讓您直接將 slug 添加到陣列中,以刪除 slug。

過濾器名稱是 remove_custom_post_type_slug。
add_filter( ‘remove_custom_post_type_slug’,function ( $slug_list ){
return $slug_list
} );

在上面的陣列中,您需要確保傳遞的 slug 名稱正確。

它與以下功能一起使用,您只需確保使用以下其中一種功能來獲得文章連結。

post_type_link
get_the_permalink
the_permalink

此外掛也與自訂文章類型 ui 相容。

如有疑問,您可以建立查詢工單或透過 [email protected] 聯絡我。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Remove Post Type Slug」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin provides a clean, SEO-friendly URL by allowing you to remove custom post type slugs with just a few clicks.
Key Features:
– Remove custom post type slugs via plugin settings in the admin dashboard under Remove Custom Post Type Slug Settings.
– View and select post type slugs to remove, then save your settings.
Developer Note
For additional customization, use the following filter:
add_filter('remove_custom_post_type_slug', function($slug_list) {
return $slug_list;
});
Ensure each slug name in the array matches exactly.
Supported functions:
– post_type_link
– get_the_permalink
– the_permalink
This plugin is also compatible with Custom Post Type UI.
For questions, email [email protected].
If you’re looking to remove taxonomy slugs, check out my other plugin: Remove Taxonomy Slug

延伸相關外掛

文章
Filter
Mastodon