Title: Custom_Background::admin_load
Published: April 25, 2014
Last modified: April 28, 2025

---

# Custom_Background::admin_load()

## In this article

 * [Source](https://developer.wordpress.org/reference/classes/custom_background/admin_load/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/custom_background/admin_load/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/custom_background/admin_load/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/custom_background/admin_load/?output_format=md#wp--skip-link--target)

Sets up the enqueue for the CSS & JavaScript files.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/custom_background/admin_load/?output_format=md#source)󠁿

    ```php
    public function admin_load() {
    	get_current_screen()->add_help_tab(
    		array(
    			'id'      => 'overview',
    			'title'   => __( 'Overview' ),
    			'content' =>
    				'<p>' . __( 'You can customize the look of your site without touching any of your theme&#8217;s code by using a custom background. Your background can be an image or a color.' ) . '</p>' .
    				'<p>' . __( 'To use a background image, simply upload it or choose an image that has already been uploaded to your Media Library by clicking the &#8220;Choose Image&#8221; button. You can display a single instance of your image, or tile it to fill the screen. You can have your background fixed in place, so your site content moves on top of it, or you can have it scroll with your site.' ) . '</p>' .
    				'<p>' . __( 'You can also choose a background color by clicking the Select Color button and either typing in a legitimate HTML hex value, e.g. &#8220;#ff0000&#8221; for red, or by choosing a color using the color picker.' ) . '</p>' .
    				'<p>' . __( 'Do not forget to click on the Save Changes button when you are finished.' ) . '</p>',
    		)
    	);

    	get_current_screen()->set_help_sidebar(
    		'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    		'<p>' . __( '<a href="https://codex.wordpress.org/Appearance_Background_Screen">Documentation on Custom Background</a>' ) . '</p>' .
    		'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
    	);

    	wp_enqueue_media();
    	wp_enqueue_script( 'custom-background' );
    	wp_enqueue_style( 'wp-color-picker' );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-custom-background.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/includes/class-custom-background.php#L95)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/class-custom-background.php#L95-L117)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/custom_background/admin_load/?output_format=md#related)󠁿

| Uses | Description | 
| [get_current_screen()](https://developer.wordpress.org/reference/functions/get_current_screen/)`wp-admin/includes/screen.php` |

Get the current screen object

  | 
| [wp_enqueue_script()](https://developer.wordpress.org/reference/functions/wp_enqueue_script/)`wp-includes/functions.wp-scripts.php` |

Enqueues a script.

  | 
| [wp_enqueue_style()](https://developer.wordpress.org/reference/functions/wp_enqueue_style/)`wp-includes/functions.wp-styles.php` |

Enqueues a CSS stylesheet.

  | 
| [wp_enqueue_media()](https://developer.wordpress.org/reference/functions/wp_enqueue_media/)`wp-includes/media.php` |

Enqueues all scripts, styles, settings, and templates necessary to use all media JS APIs.

  | 
| [__()](https://developer.wordpress.org/reference/functions/__/)`wp-includes/l10n.php` |

Retrieves the translation of $text.

  |

[Show 1 more](https://developer.wordpress.org/reference/classes/custom_background/admin_load/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/classes/custom_background/admin_load/?output_format=md#)

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/custom_background/admin_load/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.0.0](https://developer.wordpress.org/reference/since/3.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fcustom_background%2Fadmin_load%2F)
before being able to contribute a note or feedback.