- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
「関数リファレンス/add custom background」の版間の差分
(en:Function Reference/add_custom_background 12:36, 15 September 2010 bono 版を翻訳用にコピー) |
細 (テンプレートタグガイド・カテゴリー挿入等/翻訳者募集中) |
||
1行目: | 1行目: | ||
+ | {{NeedTrans}} | ||
+ | {{テンプレートタグガイド|PHP}} | ||
+ | |||
== Description == | == Description == | ||
45行目: | 48行目: | ||
{{原文|Function Reference/add_custom_background|92983}}<!-- 12:36, 15 September 2010 bono 版 --> | {{原文|Function Reference/add_custom_background|92983}}<!-- 12:36, 15 September 2010 bono 版 --> | ||
− | [[Category: | + | {{DEFAULTSORT:Add_custom_background}} |
+ | [[Category:関数]] | ||
+ | [[Category:コーディング基準]] | ||
+ | [[Category:wp3.0]] | ||
[[en:Function Reference/add_custom_background]] | [[en:Function Reference/add_custom_background]] |
2010年9月15日 (水) 21:40時点における版
このページ「関数リファレンス/add custom background」は未翻訳です。和訳や日本語情報を加筆してくださる協力者を求めています。
タグ一覧: テンプレートタグ | インクルードタグ | 条件分岐タグ | その他の関数 | Code Reference
使い方: テンプレートタグ入門 | パラメータの渡し方 | 初心者の方へ | その他のテーマ関連資料
目次
Description
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.
Usage
%%%<?php add_custom_background( $header_callback, $admin_header_callback, $admin_image_div_callback ) ?>%%%
Parameters
- $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.
- 初期値: ''
Return Values
- (void)
- This function does not return a value.
Examples
Notes
- Uses: Custom_Background Sets up for $admin_header_callback for administration panel display.
Change Log
Since: 3.0.0
Source File
add_custom_background() is located in wp-includes/theme.php
.
Related
- Theme Review - Guidelines (recommended)
テーマサポート:
add_theme_support(),
remove_theme_support(),
current_theme_supports()
テーマ機能:
サイドバー,
ナビゲーションメニュー,
投稿フォーマット,
投稿サムネイル,
カスタム背景,
カスタムヘッダー,
自動フィードリンク,
html5,
コンテンツ幅,
editor-style
最新英語版: WordPress Codex » Function Reference/add_custom_background (最新版との差分)