[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

The custom background script.

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

Defines 1 class

Custom_Background:: (10 methods):
  __construct()
  init()
  admin_load()
  take_action()
  admin_page()
  handle_upload()
  ajax_background_add()
  attachment_fields_to_edit()
  filter_upload_tabs()
  wp_set_background_image()


Class: Custom_Background  - X-Ref

The custom background class.

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

since: 3.0.0
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.

since: 3.0.0

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

since: 3.0.0

take_action()   X-Ref
Execute custom background modification.

since: 3.0.0

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

since: 3.0.0

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

since: 3.0.0

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.

since: 4.1.0

attachment_fields_to_edit( $form_fields )   X-Ref

since: 3.4.0
return: array $form_fields
param: array $form_fields

filter_upload_tabs( $tabs )   X-Ref

since: 3.4.0
return: array $tabs
param: array $tabs

wp_set_background_image()   X-Ref

since: 3.4.0



Generated: Thu Apr 25 01:00:03 2024 Cross-referenced by PHPXref 0.7.1