taxonomy_meta_box_sanitize_cb_checkboxes( string $taxonomy, array $terms )

Sanitizes POST values from a checkbox taxonomy metabox.

Parameters Parameters


(string) (Required) The taxonomy name.


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

Top ↑

Return Return

(int[]) Array of sanitized term IDs.

Top ↑

Source Source

File: wp-admin/includes/post.php

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

Top ↑

Changelog Changelog

Version Description
5.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.