- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
関数リファレンス/has excerpt
提供: WordPress Codex 日本語版
[http://wpdocs.sourceforge.jp{{localurl: テンプレート:en }} 日本語] •
Whether the current post has an excerpt.
使い方
<?php has_excerpt( $id ); ?>
パラメータ
- $id
- (integer) (optional) Post ID
- 初期値: Current post ID
戻り値
- (boolean)
- True if the post has an excerpt, false if it does not.
変更履歴
2.3.0にて導入されました。
ソースファイル
comments_template() は wp-includes/post-template.php
にあります。
関連資料
最新英語版: WordPress Codex » Function Reference/has excerpt (最新版との差分)