get_the_post_type_description

過濾鉤子
apply_filters( 'get_the_post_type_description', $description, $post_type_obj )
引數
  • (string) $description The post type description.
    Required:
  • (WP_Post_Type) $post_type_obj The post type object.
    Required:
定義位置
相關勾子
get_the_archive_descriptionpre_user_descriptioncategory_descriptionuser_request_action_descriptionuser_profile_picture_description
相關方法
get_the_post_type_descriptionget_the_author_descriptionget_the_archive_descriptionget_file_descriptionget_the_post_navigationget_the_posts_pagination
引入
4.9.0
棄用
-

get_the_post_type_description: 這個函式檢索當前文章的文章型別的描述。文章型別可以有一個描述,在不同的情況下使用,如在管理介面或主題模板中。

過濾後期型別存檔的描述。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'get_the_post_type_description', $description, $post_type_obj );
return apply_filters( 'get_the_post_type_description', $description, $post_type_obj );
return apply_filters( 'get_the_post_type_description', $description, $post_type_obj );

常見問題

FAQs
檢視更多 >