[ Index ]

WordPress 5.4.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    




/wp-admin/includes/ -> class-custom-background.php (summary)

The custom background script.

File Size: 616 lines (21 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Custom_Background:: (10 methods):

Class: Custom_Background  - X-Ref

The custom background class.

__construct( $admin_header_callback = '', $admin_image_div_callback = '' )   X-Ref
Constructor - Register administration header callback.

param: callable $admin_header_callback
param: callable $admin_image_div_callback Optional custom image div output callback.

init()   X-Ref
Set up the hooks for the Custom Background admin page.

admin_load()   X-Ref
Set up the enqueue for the CSS & JavaScript files.

take_action()   X-Ref
Execute custom background modification.

admin_page()   X-Ref
Display the custom background page.

handle_upload()   X-Ref
Handle an Image upload for the background image.

ajax_background_add()   X-Ref
Ajax handler for adding custom background context to an attachment.

Triggers when the user adds a new background image from the
Media Manager.

attachment_fields_to_edit( $form_fields )   X-Ref

param: array $form_fields
return: array $form_fields

filter_upload_tabs( $tabs )   X-Ref

param: array $tabs
return: array $tabs

wp_set_background_image()   X-Ref

Generated: Tue May 19 15:51:04 2020 Cross-referenced by PHPXref 0.7.1