WordPress Hooks Explorer

Listing all hooks extracted WordPress Core

Details about customize_dynamic_setting_args

Back to home


Filename Hook Type Line Number PHP Doc
wp-includes/class-wp-customize-manager.php apply_filters 3773 /**
* Adds a customize setting.
* @since 3.4.0
* @since 4.5.0 Return added WP_Customize_Setting instance.
* @see WP_Customize_Setting::__construct()
* @link https://developer.wordpress.org/themes/customize-api
* @param WP_Customize_Setting|string $id Customize Setting object, or ID.
* @param array $args Optional. Array of properties for the new Setting object.
* See WP_Customize_Setting::__construct() for information
* on accepted arguments. Default empty array.
* @return WP_Customize_Setting The instance of the setting that was added.
wp-includes/class-wp-customize-manager.php apply_filters 3822 /**
* Filters a dynamic setting's constructor args.
* For a dynamic setting to be registered, this filter must be employed
* to override the default false value with an array of args to pass to
* the WP_Customize_Setting constructor.
* @since 4.2.0
* @param false|array $setting_args The arguments to the WP_Customize_Setting constructor.
* @param string $setting_id ID for dynamic setting, usually coming from `$_POST['customized']`.

Hook Parameters

Parameter Type Name Description