get_comments_popup_template

Sponsored Link

現在あるいは親テンプレート内のコメントポップアップテンプレートのパスを取得します。

親テンプレート内に存在する場合、現在のテンプレート内のコメントポップアップテンプレートをチェックします。存在しない場合、その時はデフォルトテーマからcomment-popup.phpファイルを取得します。それが動作するためには、デフォルトテーマが存在している必要があります。

Sponsored Link

Retrieve path of comment popup template in current or parent template.

Checks for comment popup template in current template, if it exists or in the parent template. If it doesn’t exist, then it retrieves the comment-popup.php file from the default theme. The default theme must then exist for it to work.

get_comments_popup_templateのファンクションタグ使用方法

<?php get_comments_popup_template() ?>

get_comments_popup_templateのパラメーター

None.

戻り値

(string)
テンプレートパスを返します。

(string)
Returns the template path.

注釈

  • Uses: apply_filters() Calls ‘comments_popup_template’ filter on path.
  • Uses: locate_template() to locate ‘comments-popup.php’ file.
  • Uses: get_theme_root()

変更ログ

Since: 1.5.0

ソースファイル

get_comments_popup_template()は、wp-includes/theme.php内に位置しています。

get_comments_popup_template() is located in wp-includes/theme.php.

Sponsored Link