get_header_image

Sponsored Link

カスタムヘッダーのヘッダー画像を取得します。

Sponsored Link

Retrieve header image for custom header.

get_header_imageのファンクションタグ使用方法

<?php get_header_image() ?>

get_header_imageのパラメーター

None.

戻り値

(string)
ヘッダー画像パスを返します。
空の文字列は次の場合に返されます。

(string)
Returns header image path.
An empty string will be returned if:

  • 現在のテーマはヘッダー画像をサポートしていません。
  • ユーザーは外観->ヘッダー画面から “減っd−あ画像を削除”を選択します。
  • The current theme does not support header images.
  • The user has selected the “Remove Header Image” option from the Appearance -> Header screen.

注釈

Uses: HEADER_IMAGE

変更ログ

Since: 2.1.0

ソースファイル

get_header_image()は、wp-includes/theme.php内に位置しています。

get_header_image() is located in wp-includes/theme.php.

Sponsored Link