WP_Customize_Manager::after_setup_theme() WordPress Method

The after_setup_theme() method is a customizer method that is run after the theme has been setup. This method can be used to add theme support for various features, such as custom background or custom header.

WP_Customize_Manager::after_setup_theme() #

Callback to validate a theme once it is loaded


Source

File: wp-includes/class-wp-customize-manager.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;
		}
	}


Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More