WPDev.one
Core Function
View Source on Trac ↗

add_custom_background()

add_custom_background( mixed $wp_head_callback = '', mixed $admin_head_callback = '', mixed $admin_preview_callback = '' )

Add callbacks for background image display.

Parameters 0 required

Name / Type Description
$wp_head_callback
callable

Call on the {@see 'wp_head'} action.

$admin_head_callback
callable

Call on custom background administration screen.

$admin_preview_callback
callable

Output a custom background image div on the custom background administration screen. Optional.

Return Value

(void)
No return value description available.

Function Information

Since Version
3.0.0
Source File
wp-includes/deprecated.php
Advertisement