Custom_Background::init() – Set up the hooks for the Custom Background admin page.

You appear to be a bot. Output may be restricted

Description

Sets up the hooks for the Custom Background admin page.

Usage

Custom_Background::init();

Parameters

Returns

void

Source

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

1 to 14 of 14
  public function init() {
    $page = add_theme_page( __( 'Background' ), __( 'Background' ), 'edit_theme_options', 'custom-background', array( $this, 'admin_page' ) );
    if ( ! $page ) {
      return;
    }

    add_action( "load-{$page}", array( $this, 'admin_load' )  < );
    add_action( "load-{$page}", array( $this, 'take_action' )  <, 49 );
    add_action( "load-{$page}", array( $this, 'handle_upload' )  <, 49 );

    if ( $this->admin_header_callback ) {
      add_action( "admin_head-{$page}", $this->admin_header_callback, 51 );
    }
  }
 

 View on GitHub View on Trac