- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
「関数リファレンス/add custom background」の版間の差分
細 (テンプレートタグガイド・カテゴリー挿入等/翻訳者募集中) |
細 (見出しのみ) |
||
2行目: | 2行目: | ||
{{テンプレートタグガイド|PHP}} | {{テンプレートタグガイド|PHP}} | ||
− | == | + | == 説明 == |
Add callbacks for background image display. | Add callbacks for background image display. | ||
8行目: | 8行目: | ||
The parameter <tt>$header_callback</tt> callback will be required to display the content for the '<tt>wp_head</tt>' action. The parameter <tt>$admin_header_callback</tt> callback will be added to Custom_Background class and that will be added to the '<tt>admin_menu</tt>' action. | The parameter <tt>$header_callback</tt> callback will be required to display the content for the '<tt>wp_head</tt>' action. The parameter <tt>$admin_header_callback</tt> callback will be added to Custom_Background class and that will be added to the '<tt>admin_menu</tt>' action. | ||
− | == | + | == 使い方 == |
− | + | <?php add_custom_background( $header_callback, $admin_header_callback, $admin_image_div_callback ) ?> | |
− | == | + | == パラメータ == |
{{Parameter|$header_callback|callback|Call on '<tt>wp_head</tt>' action.|optional|''}} | {{Parameter|$header_callback|callback|Call on '<tt>wp_head</tt>' action.|optional|''}} | ||
18行目: | 18行目: | ||
{{Parameter|$admin_image_div_callback|callback|Output a custom background image div on the custom background administration screen. Optional.|optional|''}} | {{Parameter|$admin_image_div_callback|callback|Output a custom background image div on the custom background administration screen. Optional.|optional|''}} | ||
− | == | + | == 戻り値 == |
; (void) : This function does not return a value. | ; (void) : This function does not return a value. | ||
− | == | + | == 用例 == |
<!-- Need creative examples. Feel free to link to external examples. --> | <!-- Need creative examples. Feel free to link to external examples. --> | ||
− | == | + | == 注 == |
* Uses: Custom_Background Sets up for <tt>$admin_header_callback</tt> for administration panel display. | * Uses: Custom_Background Sets up for <tt>$admin_header_callback</tt> for administration panel display. | ||
− | == | + | == 更新履歴 == |
− | + | [[Version 3.0|3.0.0]]以降 | |
− | == | + | == ソースファイル == |
<tt>add_custom_background()</tt> is located in {{Trac|wp-includes/theme.php}}. | <tt>add_custom_background()</tt> is located in {{Trac|wp-includes/theme.php}}. | ||
− | == | + | == 関連資料 == |
* [[Theme Review#Functionality|Theme Review - Guidelines]] (recommended) | * [[Theme Review#Functionality|Theme Review - Guidelines]] (recommended) |
2015年5月11日 (月) 22:13時点における版
このページ「関数リファレンス/add custom background」は未翻訳です。和訳や日本語情報を加筆してくださる協力者を求めています。
タグ一覧: テンプレートタグ | インクルードタグ | 条件分岐タグ | その他の関数 | Code Reference
使い方: テンプレートタグ入門 | パラメータの渡し方 | 初心者の方へ | その他のテーマ関連資料
説明
Add callbacks for background image display.
The parameter $header_callback callback will be required to display the content for the 'wp_head' action. The parameter $admin_header_callback callback will be added to Custom_Background class and that will be added to the 'admin_menu' action.
使い方
<?php add_custom_background( $header_callback, $admin_header_callback, $admin_image_div_callback ) ?>
パラメータ
- $header_callback
- (callback) (optional) Call on 'wp_head' action.
- 初期値: ''
- $admin_header_callback
- (callback) (optional) Call on custom background administration screen.
- 初期値: ''
- $admin_image_div_callback
- (callback) (optional) Output a custom background image div on the custom background administration screen. Optional.
- 初期値: ''
戻り値
- (void)
- This function does not return a value.
用例
注
- Uses: Custom_Background Sets up for $admin_header_callback for administration panel display.
更新履歴
3.0.0以降
ソースファイル
add_custom_background() is located in wp-includes/theme.php
.
関連資料
- Theme Review - Guidelines (recommended)
テーマサポート:
add_theme_support(),
remove_theme_support(),
current_theme_supports()
テーマ機能:
サイドバー,
ナビゲーションメニュー,
投稿フォーマット,
投稿サムネイル,
カスタム背景,
カスタムヘッダー,
自動フィードリンク,
html5,
コンテンツ幅,
editor-style
最新英語版: WordPress Codex » Function Reference/add_custom_background (最新版との差分)