Uses
Uses | Description |
---|---|
wp-includes/load.php: get_current_blog_id() | Retrieve the current site ID. |
Return true if the current site is not the same as the previewed site.
(bool) If preview() has been called.
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 ); }
Version | Description |
---|---|
4.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_setting/is_current_blog_previewed