Custom_Image_Header::admin_page() WordPress Method

The Custom_Image_Header::admin_page() method is used to display the custom image header page in the WordPress admin. This page allows users to select and crop an image to use as the header for their WordPress site.

Custom_Image_Header::admin_page() #

Display the page based on the current step.


Source

File: wp-admin/includes/class-custom-image-header.php

	public function admin_page() {
		if ( ! current_user_can( 'edit_theme_options' ) ) {
			wp_die( __( 'Sorry, you are not allowed to customize headers.' ) );
		}

		$step = $this->step();

		if ( 2 === $step ) {
			$this->step_2();
		} elseif ( 3 === $step ) {
			$this->step_3();
		} else {
			$this->step_1();
		}
	}


Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.