[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
The custom background script.
File Size: | 669 lines (22 kb) |
Included or required: | 2 times |
Referenced: | 1 time |
Includes or requires: | 0 files |
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 |
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 Dec 24 08:20:01 2024 | Cross-referenced by PHPXref |