- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
関数リファレンス/add custom background
提供: WordPress Codex 日本語版
< 関数リファレンス
2010年9月15日 (水) 21:38時点におけるBono (トーク | 投稿記録)による版 (en:Function Reference/add_custom_background 12:36, 15 September 2010 bono 版を翻訳用にコピー)
目次
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 (最新版との差分)