Custom_Image_Header::step()
Gets the current step.
Метод класса: Custom_Image_Header{}
Хуков нет.
Возвращает
int
. Current step.
Использование
$Custom_Image_Header = new Custom_Image_Header(); $Custom_Image_Header->step();
Список изменений
С версии 2.6.0 | Введена. |
Код Custom_Image_Header::step() Custom Image Header::step WP 6.5.2
public function step() { if ( ! isset( $_GET['step'] ) ) { return 1; } $step = (int) $_GET['step']; if ( $step < 1 || 3 < $step || ( 2 === $step && ! wp_verify_nonce( $_REQUEST['_wpnonce-custom-header-upload'], 'custom-header-upload' ) ) || ( 3 === $step && ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'custom-header-crop-image' ) ) ) { return 1; } return $step; }