WP_Customize_Setting::is_current_blog_previewed()

Return true if the current site is not the same as the previewed site.


Description Description


Return Return

(bool) If preview() has been called.


Top ↑

Source Source

File: wp-includes/class-wp-customize-setting.php

	public function is_current_blog_previewed() {
		if ( ! isset( $this->_previewed_blog_id ) ) {
			return false;
		}
		return ( get_current_blog_id() === $this->_previewed_blog_id );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
4.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.