WordPress at Your Fingertips
function is not described

Custom_Image_Header::admin_page() public WP 2.1.0

Display the page based on the current step.

{} It's a method of the class: Custom_Image_Header{}

No Hooks.

Return

null. Nothing.

Usage

$Custom_Image_Header = new Custom_Image_Header();
$Custom_Image_Header->admin_page();

Changelog

Since 2.1.0 Introduced.

Code of Custom_Image_Header::admin_page() WP 5.8.2

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();
	}
}