customize_dynamic_setting_args

customize_dynamic_setting_args

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('customize_dynamic_setting_args') is found 2 times:

  • /wp-includes/class-wp-customize-manager.php line 3777
    		} else {
    			$class = 'WP_Customize_Setting';
    
    			/** This filter is documented in wp-includes/class-wp-customize-manager.php */
    			$args = apply_filters( 'customize_dynamic_setting_args', $args, $id );
    
    			/** This filter is documented in wp-includes/class-wp-customize-manager.php */
    			$class = apply_filters( 'customize_dynamic_setting_class', $class, $id, $args );
    
    			$setting = new $class( $this, $id, $args );
    		}
    
  • /wp-includes/class-wp-customize-manager.php line 3826
    			 *
    			 * @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']`.
    			 */
    			$setting_args = apply_filters( 'customize_dynamic_setting_args', $setting_args, $setting_id );
    			if ( false === $setting_args ) {
    				continue;
    			}
    
    			/**
    			 * Allow non-statically created settings to be constructed with custom WP_Customize_Setting subclass.