tag_archive_meta

過濾鉤子
apply_filters( 'tag_archive_meta', '' . $tag_description . '
引數
  • (string) $ The default tag description.
    Required:
    Default:
定義位置
  • wp-content/themes/twentyeleven/tag.php , line 35
相關勾子
category_archive_metawidget_archives_argsgetarchives_whereget_archives_linkget_the_archive_title
相關方法
the_archive_titlethe_metaget_archive_templateget_archivesadd_site_metaget_site_meta
引入
Twenty Eleven 1.0
棄用
-

tag_archive_meta: 這是一個WordPress過濾鉤子,允許開發者修改標籤存檔頁面的元資訊。這可以用來新增自定義資訊或刪除不相關的資訊。

過濾預設的Twenty Eleven標籤描述。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' );
echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' );
echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' );

常見問題

FAQs
檢視更多 >