packages/kirki-framework/core/src/Setting/User_Meta.php
protected function get_root_value( $default = null ) {
		$id_base = $this->id_data['base'];

		// Get all user-meta.
		// We'll use this to check if the value is set or not,
		// in order to figure out if we need to return the default value.
		$user_meta = get_user_meta( get_current_user_id() );

		// Get the single meta.
		$single_meta = get_user_meta( get_current_user_id(), $id_base, true );

		if ( isset( $user_meta[ $id_base ] ) ) {
			return $single_meta;
		}
		return $default;
	}
protected function get_root_value( $default = null ) {
		$id_base = $this->id_data['base'];

		// Get all user-meta.
		// We'll use this to check if the value is set or not,
		// in order to figure out if we need to return the default value.
		$user_meta = get_user_meta( get_current_user_id() );

		// Get the single meta.
		$single_meta = get_user_meta( get_current_user_id(), $id_base, true );

		if ( isset( $user_meta[ $id_base ] ) ) {
			return $single_meta;
		}
		return $default;
	}
protected function get_root_value ( $ default = null ) { $ id_base = $ this -> id_data [ 'base' ] ; // Get all user-meta. // We'll use this to check if the value is set or not, // in order to figure out if we need to return the default value. $ user_meta = get_user_meta ( get_current_user_id ( ) ) ; // Get the single meta. $ single_meta = get_user_meta ( get_current_user_id ( ) , $ id_base , true ) ; if ( isset ( $ user_meta [ $ id_base ] ) ) { return $ single_meta ; } return $ default ; }
Get the root value for a setting, especially for multidimensional ones.

@access protected
@since 3.0.0
@param mixed $default Value to return if root does not exist.
@return mixed
Get the root value for a setting especially for multidimensional ones .