New and updated in 3.4.0
-
Determines whether it is a theme preview or not.
-
Retrieves the template name of the previewed theme.
-
Retrieves the stylesheet name of the previewed theme.
-
Retrieves the template root of the previewed theme.
-
Prints JavaScript settings.
-
Retrieves the stylesheet root of the previewed theme.
-
Fires once the Customizer preview has initialized and JavaScript settings have been printed.
-
Filters the active theme and return the name of the previewed theme.
-
Prints base element for preview frame.
-
Handles customize_save WP Ajax request to save/update a changeset.
-
Prints a workaround to handle HTML5 tags in IE < 9.
-
Gets the registered controls.
-
Custom wp_die wrapper. Returns either the standard message for UI or the Ajax message.
-
Gets the registered sections.
-
Returns the Ajax wp_die() handler if it’s a customized request.
-
Checks if the current theme is active.
-
Starts preview and customize theme.
-
Registers styles/scripts and initialize the preview of each setting
-
Callback to validate a theme once it is loaded
-
Fires once WordPress has loaded, allowing scripts and styles to be initialized.
-
If the theme to be previewed isn’t the active theme, add filter callbacks to swap it out at runtime.
-
Prevents Ajax requests from following redirects when previewing a theme by issuing a 200 response instead of a 30x.
-
Fires once the Customizer theme preview has started.
-
Returns the sanitized value for a given setting from the current customized state.
-
Stops previewing the selected theme.
-
Fires once the Customizer theme preview has stopped.
-
Gets the theme being customized.
-
Gets the registered settings.
-
Returns true if it’s an Ajax request.
-
functionsanitize_hex_color()
Sanitizes a hex color.