customize_preview_{$this->type} WordPress Action Hook

The customize_preview_{$this->type} hook allows you to customize the preview of your {$this->type}s. This hook is called when the {$this->type}s are being previewed in the Customizer.

do_action( "customize_preview_{$this->type}", WP_Customize_Setting $setting ) #

Fires when the WP_Customize_Setting::preview() method is called for settings not handled as theme_mods or options.


Description

The dynamic portion of the hook name, $this->type, refers to the setting type.


Top ↑

Parameters

$setting

(WP_Customize_Setting)WP_Customize_Setting instance.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.