WordPress at a glance
function is not described

_get_widget_id_base() WP 2.8.0

Retrieves the widget ID base value.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Return

String. Widget ID base.

Usage

_get_widget_id_base( $id );
$id(string) (required)
Widget ID.

Changelog

Since 2.8.0 Introduced.

Code of _get_widget_id_base() WP 5.7.2

<?php
function _get_widget_id_base( $id ) {
	return preg_replace( '/-[0-9]+$/', '', $id );
}