Skip to content

Commit

Permalink
カテゴリー・タグ本文共通フックの追加
Browse files Browse the repository at this point in the history
  • Loading branch information
yhira committed Jul 4, 2019
1 parent 9356b72 commit 532989c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/content-category.php
Expand Up @@ -81,6 +81,7 @@ function get_category_content($cat_id = null){
$content = category_description($cat_id);

$content = wpautop($content);
$content = apply_filters( 'the_category_tag_content', $content );//カテゴリー・タグ本文共通
$content = apply_filters( 'the_category_content', $content );
return $content;
}
Expand Down
1 change: 1 addition & 0 deletions lib/content-tag.php
Expand Up @@ -59,6 +59,7 @@ function get_tag_content($tag_id = null){
$content = tag_description($tag_id);

$content = wpautop($content);
$content = apply_filters( 'the_category_tag_content', $content );//カテゴリー・タグ本文共通
$content = apply_filters( 'the_tag_content', $content );
return $content;
}
Expand Down

0 comments on commit 532989c

Please sign in to comment.