Custom_Image_Header::admin_page
Displays the page based on the current step.
Метод класса: Custom_Image_Header{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Custom_Image_Header = new Custom_Image_Header(); $Custom_Image_Header->admin_page();
Список изменений
| С версии 2.1.0 | Введена. |
Код Custom_Image_Header::admin_page() Custom Image Header::admin page WP 7.0.1
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();
}
}