taxonomy_meta_box_sanitize_cb_checkboxes

Advertisement

Summery Summery

Sanitizes POST values from a checkbox taxonomy metabox.

Syntax Syntax

taxonomy_meta_box_sanitize_cb_checkboxes( string $taxonomy, array $terms )

Parameters Parameters

$taxonomy

(Required) The taxonomy name.

$terms

(Required) Raw term data from the 'tax_input' field.

Return Return

(int[]) Array of sanitized term IDs.

Source Source

File: wp-admin/includes/post.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
5.1.0 Introduced.

Advertisement

Leave a Reply