Custom_Image_Header::admin_page

Advertisement

Summery Summery

Display the page based on the current step.

Syntax Syntax

Custom_Image_Header::admin_page()

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.