- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
「テンプレートタグ/post password required」の版間の差分
提供: WordPress Codex 日本語版
< テンプレートタグ
(ページの作成:「==Description== Whether post requires password and correct password has been provided. ==Usage== %%%<?php post_password_required( $post ); ?>%%% ==Parameters== {{Parame...」) |
(英語版をコピペ。divタグと英語版へのリンクを挿入) |
||
1行目: | 1行目: | ||
+ | <div id="Description"> | ||
==Description== | ==Description== | ||
− | + | </div> | |
Whether post requires password and correct password has been provided. | Whether post requires password and correct password has been provided. | ||
+ | <div id="Usage"> | ||
==Usage== | ==Usage== | ||
− | + | </div> | |
+ | <?php post_password_required( $post ); ?>%%% | ||
+ | <div id="Parameters"> | ||
==Parameters== | ==Parameters== | ||
+ | </div> | ||
{{Parameter|$post|mixed|Either the post ID (integer) or the post object.|Global $post variable}} | {{Parameter|$post|mixed|Either the post ID (integer) or the post object.|Global $post variable}} | ||
+ | <div id="Return Values"> | ||
== Return Values == | == Return Values == | ||
+ | </div> | ||
; <tt>(boolean)</tt> : False if a password is not required or the correct password cookie is present, true otherwise. | ; <tt>(boolean)</tt> : False if a password is not required or the correct password cookie is present, true otherwise. | ||
+ | <div id="Changelog"> | ||
==Changelog== | ==Changelog== | ||
+ | </div> | ||
Since: 2.7.0 | Since: 2.7.0 | ||
+ | <div id="Source File"> | ||
==Source File== | ==Source File== | ||
+ | </div> | ||
<tt>post_password_required()</tt> is located in {{Trac|wp-includes/post-template.php}}. | <tt>post_password_required()</tt> is located in {{Trac|wp-includes/post-template.php}}. | ||
+ | {{原文|Function Reference/post password required|112084}}<!-- 13:23, 15 December 2011 Hearvox --> | ||
[[Category:Functions]] | [[Category:Functions]] |
2013年6月24日 (月) 22:54時点における版
Description
Whether post requires password and correct password has been provided.
Usage
<?php post_password_required( $post ); ?>%%%
Parameters
- $post
- (mixed) (Global $post variable) Either the post ID (integer) or the post object.
- 初期値: なし
Return Values
- (boolean)
- False if a password is not required or the correct password cookie is present, true otherwise.
Changelog
Since: 2.7.0
Source File
post_password_required() is located in wp-includes/post-template.php
.
最新英語版: WordPress Codex » Function Reference/post password required (最新版との差分)