- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
「関数リファレンス/get 404 template」の版間の差分
提供: WordPress Codex 日本語版
< 関数リファレンス
(新規ページ追加) |
細 (誤記訂正等。) |
||
1行目: | 1行目: | ||
− | == 説明 == | + | == 説明<span id="Description"></span> == |
− | + | 現在のテーマまたは親テーマ内の404テンプレートのパスを取得する。 | |
+ | |||
+ | == 使い方<span id="Usage"></span> == | ||
− | |||
<?php get_404_template(); ?> | <?php get_404_template(); ?> | ||
− | == パラメータ == | + | == パラメータ<span id="Parameters"></span> == |
− | + | ||
− | + | なし。 | |
− | + | ||
− | == | + | == 戻り値<span id="Return_Values"></span> == |
− | < | + | |
− | + | ; (文字列) : [[関数リファレンス/get_query_template|<tt>get_query_template( '404' )</tt>]] の結果を返す。 | |
− | + | ||
− | == | + | == 用例<span id="Examples"></span> == |
− | + | <!-- Need creative examples. Feel free to link to external examples. --> | |
− | == | + | == 参考<span id="Notes"></span> == |
− | + | * 内部で [[関数リファレンス/get_query_template|get_query_template()]] を使います。 | |
+ | == 変更履歴<span id="Change_Log"></span> == | ||
− | + | 新規導入: 1.5.0 | |
+ | == ソースファイル<span id="Source_File"></span> == | ||
+ | |||
+ | <tt>get_404_template()</tt> は {{Trac|wp-includes/template.php}} にあります。 | ||
+ | |||
+ | == 関連項目<span id="Related"></span> == | ||
{{Tag Footer}} | {{Tag Footer}} | ||
− | {{原文|Function Reference/get_404_template|151708}}<!-- 17:21, 19 May | + | {{原文|Function Reference/get_404_template|151708}} <!-- 17:21, 19 May 2015 Donwilson 版 --> |
+ | |||
+ | {{DEFAULTSORT:Get_404_template}} | ||
+ | [[Category:関数]] | ||
[[en:Function Reference/get_404_template]] | [[en:Function Reference/get_404_template]] |
2018年6月3日 (日) 20:41時点における最新版
説明
現在のテーマまたは親テーマ内の404テンプレートのパスを取得する。
使い方
<?php get_404_template(); ?>
パラメータ
なし。
戻り値
- (文字列)
- get_query_template( '404' ) の結果を返す。
用例
参考
- 内部で get_query_template() を使います。
変更履歴
新規導入: 1.5.0
ソースファイル
get_404_template() は wp-includes/template.php
にあります。
関連項目
関数リファレンス、テンプレートタグ目次もご覧ください。
最新英語版: WordPress Codex » Function Reference/get_404_template (最新版との差分)