Custom_Background::__construct() – Constructor – Register administration header callback.

You appear to be a bot. Output may be restricted

Description

Constructor – Register administration header callback.

Usage

Custom_Background::__construct( $admin_header_callback, $admin_image_div_callback );

Parameters

$admin_header_callback
( callable ) optional
$admin_image_div_callback
( callable ) optional – Optional custom image div output callback.

Returns

void

Source

File name: wordpress/wp-admin/includes/class-custom-background.php
Lines:

1 to 11 of 11
  public function __construct( $admin_header_callback = '', $admin_image_div_callback = '' ) {
    $this->admin_header_callback    = $admin_header_callback;
    $this->admin_image_div_callback = $admin_image_div_callback;

    add_action( 'admin_menu', array( $this, 'init' )  < );

    add_action( 'wp_ajax_custom-background-add', array( $this, 'ajax_background_add' )  < );

    // Unused since 3.5.0.
    add_action( 'wp_ajax_set-background-image', array( $this, 'wp_set_background_image' )  < );
  }
 

 View on GitHub View on Trac