WP_Customize_Manager::theme PHP Method

theme() public method

Get the theme being customized.
Since: 3.4.0
public theme ( ) : WP_Theme
return WP_Theme
    public function theme()
    {
        if (!$this->theme) {
            $this->theme = wp_get_theme();
        }
        return $this->theme;
    }

Usage Example

Exemplo n.º 1
0
	function do_customize_boot_actions() {
		$_SERVER['REQUEST_METHOD'] = 'POST';
		do_action( 'setup_theme' );
		$_REQUEST['nonce'] = wp_create_nonce( 'preview-customize_' . $this->manager->theme()->get_stylesheet() );
		do_action( 'after_setup_theme' );
		do_action( 'init' );
		do_action( 'wp_loaded' );
		do_action( 'wp', $GLOBALS['wp'] );
	}
All Usage Examples Of WP_Customize_Manager::theme
WP_Customize_Manager