- サイトデザイン工事中です。ご意見をお寄せください。
- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
テンプレートタグ/language attributes
提供:WordPress Codex 日本語版
< テンプレートタグ
このページ「テンプレートタグ/language attributes」は未翻訳です。和訳や日本語情報を加筆してくださる協力者を求めています。
タグ一覧: テンプレートタグ | インクルードタグ | 条件分岐タグ | その他の関数 | phpdoc
使い方: テンプレートタグ入門 | パラメータの渡し方 | 初心者の方へ | その他のテーマ関連資料
目次 |
説明
Display the language attributes for the <html> tag.
Builds up a set of html attributes containing the text direction and language information for the page.
書き方
<?php language_attributes( $doctype ) ?>
パラメータ
- $doctype
- (string) (optional) The type of html document 'xhtml' or 'html'.
- 初期値: 'html'
Return Values
- (void)
- This function does not return a value.
用例
<!DOCTYPE html> <html <?php language_attributes(); ?>> <head> ...
(from wp-content/themes/twentyten/header.php)
Notes
- Uses: get_bloginfo() May call to get 'text_direction' or 'language'.
- Uses: apply_filters() Calls 'language_attributes' on output just before sending it to browser.
Changelog
Since: 2.1.0
Source File
language_attributes() is located in wp-includes/general-template.php.
関連ページ
- Theme Review - ガイドライン(指針) -- このテンプレートタグは公式テーマディレクトリに登録するテーマに必須です。
外部資料
関連
wp_title, get_posts, query_posts, the_search_query
最新英語版: WordPress Codex » Function Reference/language attributes (最新版との差分)