WordPress at a glance
function is not described

WP_Customize_Manager::after_setup_theme() public WP 3.4.0

Callback to validate a theme once it is loaded

{} It's a method of the class: WP_Customize_Manager{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Customize_Manager = new WP_Customize_Manager();
$WP_Customize_Manager->after_setup_theme();

Changelog

Since 3.4.0 Introduced.

Code of WP_Customize_Manager::after_setup_theme() WP 5.7.2

<?php
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;
	}
}