WordPress at Your Fingertips
function is not described

taxonomy_meta_box_sanitize_cb_checkboxes() WP 5.1.0

Sanitizes POST values from a checkbox taxonomy metabox.

No Hooks.

Return

Int[]. Array of sanitized term IDs.

Usage

taxonomy_meta_box_sanitize_cb_checkboxes( $taxonomy, $terms );
$taxonomy(string) (required)
The taxonomy name.
$terms(array) (required)
Raw term data from the 'tax_input' field.

Changelog

Since 5.1.0 Introduced.

Code of taxonomy_meta_box_sanitize_cb_checkboxes() WP 5.8.2

function taxonomy_meta_box_sanitize_cb_checkboxes( $taxonomy, $terms ) {
	return array_map( 'intval', $terms );
}