get_setting_args example

/** * Determines the arguments for a dynamically-created setting. * * @since 4.2.0 * * @param false|array $args The arguments to the WP_Customize_Setting constructor. * @param string $setting_id ID for dynamic setting, usually coming from `$_POST['customized']`. * @return array|false Setting arguments, false otherwise. */
    public function filter_customize_dynamic_setting_args( $args$setting_id ) {
        if ( $this->get_setting_type( $setting_id ) ) {
            $args = $this->get_setting_args( $setting_id );
        }
        return $args;
    }

    /** * Retrieves an unslashed post value or return a default. * * @since 3.9.0 * * @param string $name Post value. * @param mixed $default_value Default post value. * @return mixed Unslashed post value or default value. */
Home | Imprint | This part of the site doesn't use cookies.