customize_dynamic_setting_class WordPress Filter Hook

The Customize Dynamic Settings Class hook allows you to modify the way that WordPress generates and saves settings for the Customizer. This can be used to add or remove settings, change the way settings are generated, or even change the way that settings are stored in the database.

apply_filters( 'customize_dynamic_setting_class', string $setting_class, string $setting_id, array $setting_args ) #

Allow non-statically created settings to be constructed with custom WP_Customize_Setting subclass.


Parameters

$setting_class

(string)WP_Customize_Setting or a subclass.

$setting_id

(string)ID for dynamic setting, usually coming from $_POST['customized'].

$setting_args

(array)WP_Customize_Setting or a subclass.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.2.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.

Show More