Custom_Image_Header::admin_page()
最后更新于:2021-11-25 19:41:22
Custom_Image_Header::admin_page()Display the page based on the current step.
源文件
文件: gc-admin/includes/class-custom-image-header.php
public function admin_page() {
if ( ! current_user_can( 'edit_theme_options' ) ) {
gc_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();
}
}