Determines whether it is a theme preview or not.
Return
bool True if it’s a preview, false if not.Source
public function is_preview() {
return (bool) $this->previewing;
}
Related
Used by | Description |
---|---|
WP_Customize_Manager::handle_override_changeset_lock_request()wp-includes/class-wp-customize-manager.php | Removes changeset lock when take over request is sent via Ajax. |
WP_Customize_Manager::handle_dismiss_autosave_or_lock_request()wp-includes/class-wp-customize-manager.php | Deletes a given auto-draft changeset or the autosave revision for a given changeset or delete changeset lock. |
WP_Customize_Manager::handle_changeset_trash_request()wp-includes/class-wp-customize-manager.php | Handles request to trash a changeset. |
WP_Customize_Manager::refresh_nonces()wp-includes/class-wp-customize-manager.php | Refreshes nonces for the current preview. |
WP_Customize_Manager::save()wp-includes/class-wp-customize-manager.php | Handles customize_save WP Ajax request to save/update a changeset. |
WP_Customize_Manager::start_previewing_theme()wp-includes/class-wp-customize-manager.php | If the theme to be previewed isn’t the active theme, add filter callbacks to swap it out at runtime. |
WP_Customize_Manager::stop_previewing_theme()wp-includes/class-wp-customize-manager.php | Stops previewing the selected theme. |
WP_Customize_Manager::wp_loaded()wp-includes/class-wp-customize-manager.php | Registers styles/scripts and initialize the preview of each setting |
WP_Customize_Manager::wp_redirect_status()wp-includes/class-wp-customize-manager.php | Prevents Ajax requests from following redirects when previewing a theme by issuing a 200 response instead of a 30x. |
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.