[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

The custom background script.

File Size: 669 lines (22 kb)
Included or required: 2 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 - Registers administration header callback.

param: callable $admin_header_callback    Optional. Administration header callback.
param: callable $admin_image_div_callback Optional. Custom image div output callback.

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


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


take_action()   X-Ref
Executes custom background modification.


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


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


ajax_background_add()   X-Ref
Handles Ajax request 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

return: array $form_fields
param: array $form_fields

filter_upload_tabs( $tabs )   X-Ref

return: array $tabs
param: array $tabs

wp_set_background_image()   X-Ref




Generated : Sat Nov 23 08:20:01 2024 Cross-referenced by PHPXref