[ 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: 0 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.

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

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

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

filter_upload_tabs( $tabs )   X-Ref

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

wp_set_background_image()   X-Ref

since: 3.4.0



Generated: Tue Dec 3 01:00:02 2024 Cross-referenced by PHPXref 0.7.1