WP_Customize_Manager::after_setup_theme
Callback to validate a theme once it is loaded
Метод класса: WP_Customize_Manager{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WP_Customize_Manager = new WP_Customize_Manager(); $WP_Customize_Manager->after_setup_theme();
Список изменений
| С версии 3.4.0 | Введена. |
Код WP_Customize_Manager::after_setup_theme() WP Customize Manager::after setup theme WP 6.9
public function after_setup_theme() {
$doing_ajax_or_is_customized = ( $this->doing_ajax() || isset( $_POST['customized'] ) );
if ( ! $doing_ajax_or_is_customized && ! validate_current_theme() ) {
wp_redirect( 'themes.php?broken=true' );
exit;
}
}