customize_dynamic_setting_args

customize_dynamic_setting_args

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('customize_dynamic_setting_args') is found 2 times:

  • /wp-includes/class-wp-customize-manager.php line 3788
    3784
    3785
    3786
    3787
    3788
    3789
    3790
    3791
    3792
    3793
    3794
    } 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 3837
    3833
    3834
    3835
    3836
    3837
    3838
    3839
    3840
    3841
    3842
    3843
    *
     * @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.