A WordPress-centric search engine for devs and theme authors



taxonomy_meta_box_sanitize_cb_checkboxes ›

Since5.0.0
Deprecatedn/a
taxonomy_meta_box_sanitize_cb_checkboxes ( $taxonmy, $terms )
Parameters:
  • (mixed) $terms Raw term data from the 'tax_input' field.
    Required: Yes
Returns:
  • (array)
Defined at:
Codex:

Sanitizes POST values from a checkbox taxonomy metabox.



Source

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